Skip to content

Commit 3e7a91e

Browse files
authored
Merge pull request #3684 from tesuji/cargo-cfg
Unlock ci: fix wrong cfg emscripten
2 parents 2918100 + 0a61e7e commit 3e7a91e

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use std::string::String;
88
// make sure to add it to this list as well.
99
const ALLOWED_CFGS: &'static [&'static str] = &[
1010
"emscripten_new_stat_abi",
11+
"espidf_time64",
1112
"freebsd10",
1213
"freebsd11",
1314
"freebsd12",
@@ -51,7 +52,7 @@ fn main() {
5152
let align_cargo_feature = env::var("CARGO_FEATURE_ALIGN").is_ok();
5253
let const_extern_fn_cargo_feature = env::var("CARGO_FEATURE_CONST_EXTERN_FN").is_ok();
5354
let libc_ci = env::var("LIBC_CI").is_ok();
54-
let libc_check_cfg = env::var("LIBC_CHECK_CFG").is_ok();
55+
let libc_check_cfg = env::var("LIBC_CHECK_CFG").is_ok() || rustc_minor_ver >= 80;
5556

5657
if env::var("CARGO_FEATURE_USE_STD").is_ok() {
5758
println!(

ci/switch.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
11
{
2-
"family": "unix",
32
"env": "newlib",
4-
"target-env": "newlib",
53
"target-family": "unix",
64
"target-c-int-width": "32",
75
"target-endian": "little",
86
"target-pointer-width": "64",
97
"os": "horizon",
108
"arch": "aarch64",
119
"panic-strategy": "unwind",
12-
"abi-blacklist": [
13-
"stdcall",
14-
"fastcall",
15-
"vectorcall",
16-
"thiscall",
17-
"win64",
18-
"sysv64"
19-
],
2010
"dynamic-linking" : false,
2111
"features": "+a53,+strict-align",
2212
"data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128",
2313
"executables": true,
2414
"position-independent-executables" : true,
2515
"linker-flavor": "gcc",
2616
"llvm-target": "aarch64-unknown-none",
27-
"has-elf-tls" : false,
17+
"has-thread-local": false,
2818
"linker-is-gnu" : true,
2919
"disable-redzone" : true,
3020
"relocation-model" : "pic",
@@ -34,4 +24,4 @@
3424
"trap-unreachable" : true,
3525
"emit-debug-gdb-scripts" : true,
3626
"requires-uwtable" : true
37-
}
27+
}

libc-test/test/makedev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ mod t {
7979

8080
// These OSes allow 32 bits for both minor and major
8181
#[cfg(any(
82-
target_os = "empscripten",
82+
target_os = "emscripten",
8383
target_os = "freebsd",
8484
target_os = "fuchsia",
8585
target_os = "linux",

0 commit comments

Comments
 (0)