mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
rustc_llvm: use cc::Build::define
This commit is contained in:
parent
658ea389fd
commit
9067d9735a
@ -154,13 +154,13 @@ fn main() {
|
||||
}
|
||||
|
||||
for component in &components {
|
||||
let mut flag = String::from("-DLLVM_COMPONENT_");
|
||||
let mut flag = String::from("LLVM_COMPONENT_");
|
||||
flag.push_str(&component.to_uppercase());
|
||||
cfg.flag(&flag);
|
||||
cfg.define(&flag, None);
|
||||
}
|
||||
|
||||
if env::var_os("LLVM_RUSTLLVM").is_some() {
|
||||
cfg.flag("-DLLVM_RUSTLLVM");
|
||||
cfg.define("LLVM_RUSTLLVM", None);
|
||||
}
|
||||
|
||||
build_helper::rerun_if_changed_anything_in_dir(Path::new("../rustllvm"));
|
||||
|
Loading…
Reference in New Issue
Block a user