}
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"));