Skip to content

Commit e315053

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

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
@@ -1514,7 +1514,10 @@ impl Config {
15141514
if let Some(ref s) = cfg.llvm_config {
15151515
target.llvm_config = Some(config.src.join(s));
15161516
}
1517-
target.llvm_has_rust_patches = cfg.llvm_has_rust_patches;
1517+
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+
}
15181521
if let Some(ref s) = cfg.llvm_filecheck {
15191522
target.llvm_filecheck = Some(config.src.join(s));
15201523
}

0 commit comments

Comments
 (0)