Skip to content

Commit deb3fdd

Browse files
committed
Use new check-cfg syntax in rustc_llvm build script
1 parent 855c683 commit deb3fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_llvm/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn output(cmd: &mut Command) -> String {
102102

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

108108
if tracked_env_var_os("RUST_CHECK").is_some() {

0 commit comments

Comments
 (0)