From: Matthew Fernandez Date: Wed, 16 Nov 2022 05:29:14 +0000 (-0800) Subject: CI: also apply ASan, UBSan options to ld flags X-Git-Tag: 7.0.2~7^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43287aee6528edd14e36c0db5f22c5fef84c768a;p=graphviz CI: also apply ASan, UBSan options to ld flags The test job was doing this but the build job was not. Technically I think this is unnecessary (I think CMake includes `CFLAGS` or `CXXFLAGS` when calling `ld`) but it seems worth being consistent. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fde01d34b..8d2f500a2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -775,6 +775,7 @@ ubuntu-22.10-cmake-ASan-build-for-ctest: # fail on any compiler warnings - export CFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=address,undefined -g -Werror" - export CXXFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=address,undefined -g -Werror" + - export LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=address,undefined -g -Werror" - export CMAKE_OPTIONS="-Duse_coverage=ON -Dwith_cxx_tests=ON -Dwith_cxx_api=ON" - export CMAKE_OPTIONS="$CMAKE_OPTIONS -Dwith_smyrna=ON" # override the deb_build_definition artifacts since we need more