Skip to content

Commit

Permalink
Use new check-cfg syntax in rustc_llvm build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Nov 21, 2023
1 parent 1e62223 commit 7a8c020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_llvm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fn output(cmd: &mut Command) -> String {

fn main() {
for component in REQUIRED_COMPONENTS.iter().chain(OPTIONAL_COMPONENTS.iter()) {
println!("cargo:rustc-check-cfg=values(llvm_component,\"{component}\")");
println!("cargo:rustc-check-cfg=cfg(llvm_component,values(\"{component}\"))");
}

if tracked_env_var_os("RUST_CHECK").is_some() {
Expand Down

0 comments on commit 7a8c020

Please sign in to comment.