mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Use new check-cfg syntax in rustc_llvm build script
This commit is contained in:
parent
801bc561bc
commit
9b4fe38903
@ -102,7 +102,7 @@ fn output(cmd: &mut Command) -> String {
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
for component in REQUIRED_COMPONENTS.iter().chain(OPTIONAL_COMPONENTS.iter()) {
|
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() {
|
if tracked_env_var_os("RUST_CHECK").is_some() {
|
||||||
|
Loading…
Reference in New Issue
Block a user