about summary refs log tree commit diff
path: root/compiler/rustc_llvm
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-06 21:52:30 +0100
committerGitHub <noreply@github.com>2023-12-06 21:52:30 +0100
commitf546b44ecd655f01c390aef26ea4bb1e513e963e (patch)
treeadd96d0aa657b938d2f064446ec799e72e9d30c2 /compiler/rustc_llvm
parent7a34091eed9adcb079035357ffaf2467b0d377fc (diff)
parent3f0369e0f2e8c196d8e0324eb300fd8ee2ed51e1 (diff)
downloadrust-f546b44ecd655f01c390aef26ea4bb1e513e963e.tar.gz
rust-f546b44ecd655f01c390aef26ea4bb1e513e963e.zip
Rollup merge of #117981 - Urgau:check-cfg-remove-deprecated-syntax, r=b-naber
Remove deprecated `--check-cfg` syntax

This PR removes the deprecated `--check-cfg` `names(...)` and `values(...)` syntax.

Follow up to https://github.com/rust-lang/rust/pull/111072
Part of https://github.com/rust-lang/compiler-team/issues/636

r? compiler
Diffstat (limited to 'compiler/rustc_llvm')
-rw-r--r--compiler/rustc_llvm/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs
index ed1e8771323..4b0c1229da1 100644
--- a/compiler/rustc_llvm/build.rs
+++ b/compiler/rustc_llvm/build.rs
@@ -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() {