@@ -6,7 +6,6 @@ use std::str;
6
6
// need to know all the possible cfgs that this script will set. If you need to set another cfg
7
7
// make sure to add it to this list as well.
8
8
const ALLOWED_CFGS : & ' static [ & ' static str ] = & [
9
- "emscripten_new_stat_abi" ,
10
9
"espidf_time32" ,
11
10
"freebsd10" ,
12
11
"freebsd11" ,
@@ -67,12 +66,6 @@ fn main() {
67
66
_ => set_cfg ( "freebsd15" ) ,
68
67
}
69
68
70
- match emcc_version_code ( ) {
71
- Some ( v) if ( v >= 30142 ) => set_cfg ( "emscripten_new_stat_abi" ) ,
72
- // Non-Emscripten or version < 3.1.42.
73
- Some ( _) | None => ( ) ,
74
- }
75
-
76
69
// On CI: deny all warnings
77
70
if libc_ci {
78
71
set_cfg ( "libc_deny_warnings" ) ;
@@ -212,28 +205,6 @@ fn which_freebsd() -> Option<i32> {
212
205
}
213
206
}
214
207
215
- fn emcc_version_code ( ) -> Option < u64 > {
216
- let output = std:: process:: Command :: new ( "emcc" )
217
- . arg ( "-dumpversion" )
218
- . output ( )
219
- . ok ( ) ?;
220
- if !output. status . success ( ) {
221
- return None ;
222
- }
223
-
224
- let version = String :: from_utf8 ( output. stdout ) . ok ( ) ?;
225
-
226
- // Some Emscripten versions come with `-git` attached, so split the
227
- // version string also on the `-` char.
228
- let mut pieces = version. trim ( ) . split ( [ '.' , '-' ] ) ;
229
-
230
- let major = pieces. next ( ) . and_then ( |x| x. parse ( ) . ok ( ) ) . unwrap_or ( 0 ) ;
231
- let minor = pieces. next ( ) . and_then ( |x| x. parse ( ) . ok ( ) ) . unwrap_or ( 0 ) ;
232
- let patch = pieces. next ( ) . and_then ( |x| x. parse ( ) . ok ( ) ) . unwrap_or ( 0 ) ;
233
-
234
- Some ( major * 10000 + minor * 100 + patch)
235
- }
236
-
237
208
fn set_cfg ( cfg : & str ) {
238
209
if !ALLOWED_CFGS . contains ( & cfg) {
239
210
panic ! ( "trying to set cfg {}, but it is not in ALLOWED_CFGS" , cfg) ;
0 commit comments