File tree 3 files changed +8
-8
lines changed
src/unix/linux_like/emscripten
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use std::{env, str};
5
5
// need to know all the possible cfgs that this script will set. If you need to set another cfg
6
6
// make sure to add it to this list as well.
7
7
const ALLOWED_CFGS : & ' static [ & ' static str ] = & [
8
- "emscripten_new_stat_abi " ,
8
+ "emscripten_old_stat_abi " ,
9
9
"espidf_time32" ,
10
10
"freebsd10" ,
11
11
"freebsd11" ,
@@ -75,9 +75,9 @@ fn main() {
75
75
}
76
76
77
77
match emcc_version_code ( ) {
78
- Some ( v) if ( v >= 30142 ) => set_cfg ( "emscripten_new_stat_abi " ) ,
79
- // Non-Emscripten or version < 3.1.42.
80
- Some ( _ ) | None => ( ) ,
78
+ Some ( v) if ( v < 30142 ) => set_cfg ( "emscripten_old_stat_abi " ) ,
79
+ // Non-Emscripten or version >= 3.1.42.
80
+ _ => ( ) ,
81
81
}
82
82
83
83
let linux_time_bits64 = env:: var ( "RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64" ) . is_ok ( ) ;
Original file line number Diff line number Diff line change 3
3
set -eux
4
4
5
5
# Note: keep in sync with:
6
- # https://github.com/rust-lang/rust/blob/master/src/ci/docker/scripts/ emscripten.sh
6
+ # https://github.com/rust-lang/rust/blob/master/src/doc/rustc/src/platform-support/wasm32-unknown- emscripten.md#requirements
7
7
emsdk_version=3.1.68
8
8
9
9
git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
Original file line number Diff line number Diff line change @@ -225,16 +225,16 @@ s! {
225
225
}
226
226
pub struct stat {
227
227
pub st_dev: crate :: dev_t,
228
- #[ cfg( not ( emscripten_new_stat_abi ) ) ]
228
+ #[ cfg( emscripten_old_stat_abi ) ]
229
229
__st_dev_padding: c_int,
230
- #[ cfg( not ( emscripten_new_stat_abi ) ) ]
230
+ #[ cfg( emscripten_old_stat_abi ) ]
231
231
__st_ino_truncated: c_long,
232
232
pub st_mode: crate :: mode_t,
233
233
pub st_nlink: crate :: nlink_t,
234
234
pub st_uid: crate :: uid_t,
235
235
pub st_gid: crate :: gid_t,
236
236
pub st_rdev: crate :: dev_t,
237
- #[ cfg( not ( emscripten_new_stat_abi ) ) ]
237
+ #[ cfg( emscripten_old_stat_abi ) ]
238
238
__st_rdev_padding: c_int,
239
239
pub st_size: off_t,
240
240
pub st_blksize: crate :: blksize_t,
You can’t perform that action at this time.
0 commit comments