use UBSAN for make test in CI (#4763)

* use UBSAN for make test in CI

* none of the non-x86 Linux combinations works
This commit is contained in:
tersec 2023-03-23 14:45:13 +00:00 committed by GitHub
parent 635a924e8c
commit 7892aaf08b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,9 +99,9 @@ jobs:
fi
echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV
# Stack usage test on recent enough gcc:
# Stack usage test and UBSAN on recent enough gcc:
if [[ '${{ runner.os }}' == 'Linux' && '${{ matrix.target.cpu }}' == 'amd64' ]]; then
export NIMFLAGS="${NIMFLAGS} -d:limitStackUsage"
export NIMFLAGS="${NIMFLAGS} -d:limitStackUsage --passC:-fsanitize=undefined --passL:-fsanitize=undefined"
echo "NIMFLAGS=${NIMFLAGS}" >> $GITHUB_ENV
fi