File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,6 @@ test = true
102
102
level = " warn"
103
103
check-cfg = [
104
104
' cfg(bootstrap)' ,
105
- ' cfg(backtrace_in_libstd)' ,
106
- ' cfg(netbsd10)' ,
107
105
' cfg(target_arch, values("xtensa"))' ,
108
106
# std use #[path] imports to portable-simd `std_float` crate
109
107
# and to the `backtrace` crate which messes-up with Cargo list
Original file line number Diff line number Diff line change @@ -7,9 +7,12 @@ fn main() {
7
7
let target_vendor =
8
8
env:: var ( "CARGO_CFG_TARGET_VENDOR" ) . expect ( "CARGO_CFG_TARGET_VENDOR was not set" ) ;
9
9
let target_env = env:: var ( "CARGO_CFG_TARGET_ENV" ) . expect ( "CARGO_CFG_TARGET_ENV was not set" ) ;
10
+
11
+ println ! ( "cargo:rustc-check-cfg=cfg(netbsd10)" ) ;
10
12
if target_os == "netbsd" && env:: var ( "RUSTC_STD_NETBSD10" ) . is_ok ( ) {
11
13
println ! ( "cargo:rustc-cfg=netbsd10" ) ;
12
14
}
15
+
13
16
println ! ( "cargo:rustc-check-cfg=cfg(restricted_std)" ) ;
14
17
if target_os == "linux"
15
18
|| target_os == "android"
@@ -62,6 +65,9 @@ fn main() {
62
65
// - Any new targets that have not been explicitly added above.
63
66
println ! ( "cargo:rustc-cfg=restricted_std" ) ;
64
67
}
65
- println ! ( "cargo:rustc-env=STD_ENV_ARCH={}" , env:: var( "CARGO_CFG_TARGET_ARCH" ) . unwrap( ) ) ;
68
+
69
+ println ! ( "cargo:rustc-check-cfg=cfg(backtrace_in_libstd)" ) ;
66
70
println ! ( "cargo:rustc-cfg=backtrace_in_libstd" ) ;
71
+
72
+ println ! ( "cargo:rustc-env=STD_ENV_ARCH={}" , env:: var( "CARGO_CFG_TARGET_ARCH" ) . unwrap( ) ) ;
67
73
}
You can’t perform that action at this time.
0 commit comments