Skip to content

Commit 9067d97

Browse files
committed
rustc_llvm: use cc::Build::define
1 parent 658ea38 commit 9067d97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_llvm/build.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ fn main() {
154154
}
155155

156156
for component in &components {
157-
let mut flag = String::from("-DLLVM_COMPONENT_");
157+
let mut flag = String::from("LLVM_COMPONENT_");
158158
flag.push_str(&component.to_uppercase());
159-
cfg.flag(&flag);
159+
cfg.define(&flag, None);
160160
}
161161

162162
if env::var_os("LLVM_RUSTLLVM").is_some() {
163-
cfg.flag("-DLLVM_RUSTLLVM");
163+
cfg.define("LLVM_RUSTLLVM", None);
164164
}
165165

166166
build_helper::rerun_if_changed_anything_in_dir(Path::new("../rustllvm"));

0 commit comments

Comments
 (0)