We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
has-rust-patches
1 parent a142760 commit 7945458Copy full SHA for 7945458
src/bootstrap/config.rs
@@ -1228,7 +1228,10 @@ impl Config {
1228
if let Some(ref s) = cfg.llvm_config {
1229
target.llvm_config = Some(config.src.join(s));
1230
}
1231
- target.llvm_has_rust_patches = cfg.llvm_has_rust_patches;
+ if let Some(patches) = cfg.llvm_has_rust_patches {
1232
+ assert!(config.submodules.is_some(), "cannot set `llvm-hash-rust-patches` for a managed submodule");
1233
+ target.llvm_has_rust_patches = Some(patches);
1234
+ }
1235
if let Some(ref s) = cfg.llvm_filecheck {
1236
target.llvm_filecheck = Some(config.src.join(s));
1237
0 commit comments