Auto merge of #89776 - rusticstuff:ci-overflow-checks, r=Mark-Simulacrum
CI: Enable overflow checks for test (non-dist) builds They stay disabled for Apple builds though, which take the most time already due to running on slow hw.
This commit is contained in:
commit
a99c9d6518
5 changed files with 15 additions and 0 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -293,6 +293,7 @@ jobs:
|
||||||
MACOSX_DEPLOYMENT_TARGET: 10.7
|
MACOSX_DEPLOYMENT_TARGET: 10.7
|
||||||
NO_LLVM_ASSERTIONS: 1
|
NO_LLVM_ASSERTIONS: 1
|
||||||
NO_DEBUG_ASSERTIONS: 1
|
NO_DEBUG_ASSERTIONS: 1
|
||||||
|
NO_OVERFLOW_CHECKS: 1
|
||||||
DIST_REQUIRE_ALL_TOOLS: 1
|
DIST_REQUIRE_ALL_TOOLS: 1
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
- name: dist-x86_64-apple-alt
|
- name: dist-x86_64-apple-alt
|
||||||
|
@ -303,6 +304,7 @@ jobs:
|
||||||
MACOSX_DEPLOYMENT_TARGET: 10.7
|
MACOSX_DEPLOYMENT_TARGET: 10.7
|
||||||
NO_LLVM_ASSERTIONS: 1
|
NO_LLVM_ASSERTIONS: 1
|
||||||
NO_DEBUG_ASSERTIONS: 1
|
NO_DEBUG_ASSERTIONS: 1
|
||||||
|
NO_OVERFLOW_CHECKS: 1
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
- name: x86_64-apple
|
- name: x86_64-apple
|
||||||
env:
|
env:
|
||||||
|
@ -313,6 +315,7 @@ jobs:
|
||||||
MACOSX_STD_DEPLOYMENT_TARGET: 10.7
|
MACOSX_STD_DEPLOYMENT_TARGET: 10.7
|
||||||
NO_LLVM_ASSERTIONS: 1
|
NO_LLVM_ASSERTIONS: 1
|
||||||
NO_DEBUG_ASSERTIONS: 1
|
NO_DEBUG_ASSERTIONS: 1
|
||||||
|
NO_OVERFLOW_CHECKS: 1
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
- name: dist-aarch64-apple
|
- name: dist-aarch64-apple
|
||||||
env:
|
env:
|
||||||
|
@ -324,6 +327,7 @@ jobs:
|
||||||
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
|
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
|
||||||
NO_LLVM_ASSERTIONS: 1
|
NO_LLVM_ASSERTIONS: 1
|
||||||
NO_DEBUG_ASSERTIONS: 1
|
NO_DEBUG_ASSERTIONS: 1
|
||||||
|
NO_OVERFLOW_CHECKS: 1
|
||||||
DIST_REQUIRE_ALL_TOOLS: 1
|
DIST_REQUIRE_ALL_TOOLS: 1
|
||||||
JEMALLOC_SYS_WITH_LG_PAGE: 14
|
JEMALLOC_SYS_WITH_LG_PAGE: 14
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
|
|
|
@ -40,3 +40,4 @@ ENV SCRIPT python3 ../x.py --stage 2 test --host='' --target $TARGETS
|
||||||
# running with assertions again is not useful
|
# running with assertions again is not useful
|
||||||
ENV NO_DEBUG_ASSERTIONS=1
|
ENV NO_DEBUG_ASSERTIONS=1
|
||||||
ENV NO_LLVM_ASSERTIONS=1
|
ENV NO_LLVM_ASSERTIONS=1
|
||||||
|
ENV NO_OVERFLOW_CHECKS=1
|
||||||
|
|
|
@ -39,6 +39,7 @@ ENV RUST_CONFIGURE_ARGS \
|
||||||
# otherwise normally be. We already test libstd with debug assertions in lots of
|
# otherwise normally be. We already test libstd with debug assertions in lots of
|
||||||
# other contexts as well
|
# other contexts as well
|
||||||
ENV NO_DEBUG_ASSERTIONS=1
|
ENV NO_DEBUG_ASSERTIONS=1
|
||||||
|
ENV NO_OVERFLOW_CHECKS=1
|
||||||
|
|
||||||
ENV WASM_TARGETS=wasm32-unknown-unknown
|
ENV WASM_TARGETS=wasm32-unknown-unknown
|
||||||
ENV WASM_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $WASM_TARGETS \
|
ENV WASM_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $WASM_TARGETS \
|
||||||
|
|
|
@ -456,6 +456,7 @@ jobs:
|
||||||
MACOSX_DEPLOYMENT_TARGET: 10.7
|
MACOSX_DEPLOYMENT_TARGET: 10.7
|
||||||
NO_LLVM_ASSERTIONS: 1
|
NO_LLVM_ASSERTIONS: 1
|
||||||
NO_DEBUG_ASSERTIONS: 1
|
NO_DEBUG_ASSERTIONS: 1
|
||||||
|
NO_OVERFLOW_CHECKS: 1
|
||||||
DIST_REQUIRE_ALL_TOOLS: 1
|
DIST_REQUIRE_ALL_TOOLS: 1
|
||||||
<<: *job-macos-xl
|
<<: *job-macos-xl
|
||||||
|
|
||||||
|
@ -467,6 +468,7 @@ jobs:
|
||||||
MACOSX_DEPLOYMENT_TARGET: 10.7
|
MACOSX_DEPLOYMENT_TARGET: 10.7
|
||||||
NO_LLVM_ASSERTIONS: 1
|
NO_LLVM_ASSERTIONS: 1
|
||||||
NO_DEBUG_ASSERTIONS: 1
|
NO_DEBUG_ASSERTIONS: 1
|
||||||
|
NO_OVERFLOW_CHECKS: 1
|
||||||
<<: *job-macos-xl
|
<<: *job-macos-xl
|
||||||
|
|
||||||
- name: x86_64-apple
|
- name: x86_64-apple
|
||||||
|
@ -478,6 +480,7 @@ jobs:
|
||||||
MACOSX_STD_DEPLOYMENT_TARGET: 10.7
|
MACOSX_STD_DEPLOYMENT_TARGET: 10.7
|
||||||
NO_LLVM_ASSERTIONS: 1
|
NO_LLVM_ASSERTIONS: 1
|
||||||
NO_DEBUG_ASSERTIONS: 1
|
NO_DEBUG_ASSERTIONS: 1
|
||||||
|
NO_OVERFLOW_CHECKS: 1
|
||||||
<<: *job-macos-xl
|
<<: *job-macos-xl
|
||||||
|
|
||||||
# This target only needs to support 11.0 and up as nothing else supports the hardware
|
# This target only needs to support 11.0 and up as nothing else supports the hardware
|
||||||
|
@ -499,6 +502,7 @@ jobs:
|
||||||
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
|
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
|
||||||
NO_LLVM_ASSERTIONS: 1
|
NO_LLVM_ASSERTIONS: 1
|
||||||
NO_DEBUG_ASSERTIONS: 1
|
NO_DEBUG_ASSERTIONS: 1
|
||||||
|
NO_OVERFLOW_CHECKS: 1
|
||||||
DIST_REQUIRE_ALL_TOOLS: 1
|
DIST_REQUIRE_ALL_TOOLS: 1
|
||||||
# Corresponds to 16K page size
|
# Corresponds to 16K page size
|
||||||
#
|
#
|
||||||
|
|
|
@ -89,6 +89,11 @@ else
|
||||||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-debug-assertions"
|
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-debug-assertions"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Same for overflow checks
|
||||||
|
if [ "$NO_OVERFLOW_CHECKS" = "" ]; then
|
||||||
|
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-overflow-checks"
|
||||||
|
fi
|
||||||
|
|
||||||
# In general we always want to run tests with LLVM assertions enabled, but not
|
# In general we always want to run tests with LLVM assertions enabled, but not
|
||||||
# all platforms currently support that, so we have an option to disable.
|
# all platforms currently support that, so we have an option to disable.
|
||||||
if [ "$NO_LLVM_ASSERTIONS" = "" ]; then
|
if [ "$NO_LLVM_ASSERTIONS" = "" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue