We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 658ea38 commit 9067d97Copy full SHA for 9067d97
src/librustc_llvm/build.rs
@@ -154,13 +154,13 @@ fn main() {
154
}
155
156
for component in &components {
157
- let mut flag = String::from("-DLLVM_COMPONENT_");
+ let mut flag = String::from("LLVM_COMPONENT_");
158
flag.push_str(&component.to_uppercase());
159
- cfg.flag(&flag);
+ cfg.define(&flag, None);
160
161
162
if env::var_os("LLVM_RUSTLLVM").is_some() {
163
- cfg.flag("-DLLVM_RUSTLLVM");
+ cfg.define("LLVM_RUSTLLVM", None);
164
165
166
build_helper::rerun_if_changed_anything_in_dir(Path::new("../rustllvm"));
0 commit comments