We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
llvm-has-rust-patches
llvm-config
1 parent 5f40394 commit fd470e5Copy full SHA for fd470e5
src/bootstrap/src/core/config/config.rs
@@ -1810,10 +1810,9 @@ impl Config {
1810
target.llvm_config = Some(config.src.join(s));
1811
}
1812
if let Some(patches) = cfg.llvm_has_rust_patches {
1813
- assert_eq!(
1814
- config.submodules,
1815
- Some(false),
1816
- "cannot set `llvm-has-rust-patches` for a managed submodule (set `build.submodules = false` if you want to apply patches)"
+ assert!(
+ config.submodules == Some(false) || cfg.llvm_config.is_some(),
+ "use of `llvm-has-rust-patches` is restricted to cases where either submodules are disabled or llvm-config been provided"
1817
);
1818
target.llvm_has_rust_patches = Some(patches);
1819
0 commit comments