Skip to content

Commit 7945458

Browse files
committed
has-rust-patches doesn't make sense to set for managed submodules
1 parent a142760 commit 7945458

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/config.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,10 @@ impl Config {
12281228
if let Some(ref s) = cfg.llvm_config {
12291229
target.llvm_config = Some(config.src.join(s));
12301230
}
1231-
target.llvm_has_rust_patches = cfg.llvm_has_rust_patches;
1231+
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+
}
12321235
if let Some(ref s) = cfg.llvm_filecheck {
12331236
target.llvm_filecheck = Some(config.src.join(s));
12341237
}

0 commit comments

Comments
 (0)