diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-12-06 21:52:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-06 21:52:30 +0100 |
| commit | f546b44ecd655f01c390aef26ea4bb1e513e963e (patch) | |
| tree | add96d0aa657b938d2f064446ec799e72e9d30c2 /compiler/rustc_llvm | |
| parent | 7a34091eed9adcb079035357ffaf2467b0d377fc (diff) | |
| parent | 3f0369e0f2e8c196d8e0324eb300fd8ee2ed51e1 (diff) | |
| download | rust-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.rs | 2 |
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() { |
