Skip to content

Commit

Permalink
Adapt llvm-has-rust-patches validation to take llvm-config into a…
Browse files Browse the repository at this point in the history
…ccount.
  • Loading branch information
TimNN committed Feb 10, 2024
1 parent 5f40394 commit 36bdb6b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/bootstrap/src/core/config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1809,14 +1809,7 @@ impl Config {
}
target.llvm_config = Some(config.src.join(s));
}
if let Some(patches) = cfg.llvm_has_rust_patches {
assert_eq!(
config.submodules,
Some(false),
"cannot set `llvm-has-rust-patches` for a managed submodule (set `build.submodules = false` if you want to apply patches)"
);
target.llvm_has_rust_patches = Some(patches);
}
target.llvm_has_rust_patches = cfg.llvm_has_rust_patches;
if let Some(ref s) = cfg.llvm_filecheck {
target.llvm_filecheck = Some(config.src.join(s));
}
Expand Down

0 comments on commit 36bdb6b

Please sign in to comment.