File tree 5 files changed +15
-0
lines changed
5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,7 @@ jobs:
293
293
MACOSX_DEPLOYMENT_TARGET : 10.7
294
294
NO_LLVM_ASSERTIONS : 1
295
295
NO_DEBUG_ASSERTIONS : 1
296
+ NO_OVERFLOW_CHECKS : 1
296
297
DIST_REQUIRE_ALL_TOOLS : 1
297
298
os : macos-latest
298
299
- name : dist-x86_64-apple-alt
@@ -303,6 +304,7 @@ jobs:
303
304
MACOSX_DEPLOYMENT_TARGET : 10.7
304
305
NO_LLVM_ASSERTIONS : 1
305
306
NO_DEBUG_ASSERTIONS : 1
307
+ NO_OVERFLOW_CHECKS : 1
306
308
os : macos-latest
307
309
- name : x86_64-apple
308
310
env :
@@ -313,6 +315,7 @@ jobs:
313
315
MACOSX_STD_DEPLOYMENT_TARGET : 10.7
314
316
NO_LLVM_ASSERTIONS : 1
315
317
NO_DEBUG_ASSERTIONS : 1
318
+ NO_OVERFLOW_CHECKS : 1
316
319
os : macos-latest
317
320
- name : dist-aarch64-apple
318
321
env :
@@ -324,6 +327,7 @@ jobs:
324
327
MACOSX_STD_DEPLOYMENT_TARGET : 11.0
325
328
NO_LLVM_ASSERTIONS : 1
326
329
NO_DEBUG_ASSERTIONS : 1
330
+ NO_OVERFLOW_CHECKS : 1
327
331
DIST_REQUIRE_ALL_TOOLS : 1
328
332
JEMALLOC_SYS_WITH_LG_PAGE : 14
329
333
os : macos-latest
Original file line number Diff line number Diff line change @@ -40,3 +40,4 @@ ENV SCRIPT python3 ../x.py --stage 2 test --host='' --target $TARGETS
40
40
# running with assertions again is not useful
41
41
ENV NO_DEBUG_ASSERTIONS=1
42
42
ENV NO_LLVM_ASSERTIONS=1
43
+ ENV NO_OVERFLOW_CHECKS=1
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ ENV RUST_CONFIGURE_ARGS \
39
39
# otherwise normally be. We already test libstd with debug assertions in lots of
40
40
# other contexts as well
41
41
ENV NO_DEBUG_ASSERTIONS=1
42
+ ENV NO_OVERFLOW_CHECKS=1
42
43
43
44
ENV WASM_TARGETS=wasm32-unknown-unknown
44
45
ENV WASM_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $WASM_TARGETS \
Original file line number Diff line number Diff line change @@ -456,6 +456,7 @@ jobs:
456
456
MACOSX_DEPLOYMENT_TARGET : 10.7
457
457
NO_LLVM_ASSERTIONS : 1
458
458
NO_DEBUG_ASSERTIONS : 1
459
+ NO_OVERFLOW_CHECKS : 1
459
460
DIST_REQUIRE_ALL_TOOLS : 1
460
461
<< : *job-macos-xl
461
462
@@ -467,6 +468,7 @@ jobs:
467
468
MACOSX_DEPLOYMENT_TARGET : 10.7
468
469
NO_LLVM_ASSERTIONS : 1
469
470
NO_DEBUG_ASSERTIONS : 1
471
+ NO_OVERFLOW_CHECKS : 1
470
472
<< : *job-macos-xl
471
473
472
474
- name : x86_64-apple
@@ -478,6 +480,7 @@ jobs:
478
480
MACOSX_STD_DEPLOYMENT_TARGET : 10.7
479
481
NO_LLVM_ASSERTIONS : 1
480
482
NO_DEBUG_ASSERTIONS : 1
483
+ NO_OVERFLOW_CHECKS : 1
481
484
<< : *job-macos-xl
482
485
483
486
# This target only needs to support 11.0 and up as nothing else supports the hardware
@@ -499,6 +502,7 @@ jobs:
499
502
MACOSX_STD_DEPLOYMENT_TARGET : 11.0
500
503
NO_LLVM_ASSERTIONS : 1
501
504
NO_DEBUG_ASSERTIONS : 1
505
+ NO_OVERFLOW_CHECKS : 1
502
506
DIST_REQUIRE_ALL_TOOLS : 1
503
507
# Corresponds to 16K page size
504
508
#
Original file line number Diff line number Diff line change 89
89
RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable-debug-assertions"
90
90
fi
91
91
92
+ # Same for overflow checks
93
+ if [ " $NO_OVERFLOW_CHECKS " = " " ]; then
94
+ RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable-overflow-checks"
95
+ fi
96
+
92
97
# In general we always want to run tests with LLVM assertions enabled, but not
93
98
# all platforms currently support that, so we have an option to disable.
94
99
if [ " $NO_LLVM_ASSERTIONS " = " " ]; then
You can’t perform that action at this time.
0 commit comments