Skip to content

Commit

Permalink
has-rust-patches doesn't make sense to set for managed submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Nov 25, 2022
1 parent a142760 commit 7945458
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,10 @@ impl Config {
if let Some(ref s) = cfg.llvm_config {
target.llvm_config = Some(config.src.join(s));
}
target.llvm_has_rust_patches = cfg.llvm_has_rust_patches;
if let Some(patches) = cfg.llvm_has_rust_patches {
assert!(config.submodules.is_some(), "cannot set `llvm-hash-rust-patches` for a managed submodule");
target.llvm_has_rust_patches = Some(patches);
}
if let Some(ref s) = cfg.llvm_filecheck {
target.llvm_filecheck = Some(config.src.join(s));
}
Expand Down

0 comments on commit 7945458

Please sign in to comment.