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 b33de79 commit e315053Copy full SHA for e315053
src/bootstrap/config.rs
@@ -1514,7 +1514,10 @@ impl Config {
1514
if let Some(ref s) = cfg.llvm_config {
1515
target.llvm_config = Some(config.src.join(s));
1516
}
1517
- target.llvm_has_rust_patches = cfg.llvm_has_rust_patches;
+ if let Some(patches) = cfg.llvm_has_rust_patches {
1518
+ assert!(config.submodules.is_some(), "cannot set `llvm-hash-rust-patches` for a managed submodule");
1519
+ target.llvm_has_rust_patches = Some(patches);
1520
+ }
1521
if let Some(ref s) = cfg.llvm_filecheck {
1522
target.llvm_filecheck = Some(config.src.join(s));
1523
0 commit comments