summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2022-11-22 12:20:58 +0900
committerDaiki Ueno <ueno@gnu.org>2022-11-22 13:38:19 +0900
commitc9e25c8543a84d58c9752e5b82d7e91fa6c6b61b (patch)
tree0032ea23ef5d83a96ab8381070e427b995b6656c
parent7fa942e08e64b761b19753ae74503de43cc1ff91 (diff)
downloadgnutls-c9e25c8543a84d58c9752e5b82d7e91fa6c6b61b.tar.gz
.gitlab-ci.yml: disable GCC analyzer in sanitizer jobs
It turned out that -fanalyzer combined with -fsanitize=undefined takes excessive time when compiling certain files, e.g., lib/priority.c. Removing -fanalyzer should be safe as it is enabled in other Fedora-based jobs. Signed-off-by: Daiki Ueno <ueno@gnu.org>
-rw-r--r--.gitlab-ci.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 17c9785ea9..b4fec5fb9e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -208,6 +208,7 @@ UB+ASAN-Werror.Fedora.x86_64.gcc:
- export CFLAGS="-std=c99 -O1 -g -Wno-cpp -Werror -fno-omit-frame-pointer -fsanitize=undefined,bool,alignment,null,enum,bounds-strict,address,leak,nonnull-attribute -fno-sanitize-recover=all -fsanitize-address-use-after-scope"
- export CXXFLAGS="$CFLAGS"
- dash ./configure --cache-file $CCACHE_FILE --disable-doc --with-pkcs12-iter-count=10000
+ - sed -i 's/-fanalyzer//g' lib/Makefile
- sed -i 's/-Werror/-Wno-parentheses -Werror/g' src/Makefile
- make -j$BUILDJOBS
# Use $BUILDJOBS since the fuzzers should use mainly CPU (no blocking I/O)
@@ -220,6 +221,7 @@ UB+ASAN-Werror.Fedora.x86_64.gcc:
- make -j$CHECKJOBS check -C tests
- dash ./configure --cache-file $CCACHE_FILE --disable-doc --with-pkcs12-iter-count=10000 --with-default-trust-store-pkcs11="pkcs11:" --with-system-priority-file=/etc/crypto-policies/back-ends/gnutls.config --with-default-priority-string=@SYSTEM
- make clean
+ - sed -i 's/-fanalyzer//g' lib/Makefile
- sed -i 's/-Werror/-Wno-parentheses -Werror/g' src/Makefile
- make -j$BUILDJOBS
# Use $BUILDJOBS since most of the job is building all tests, then just running 4 tests
@@ -243,6 +245,7 @@ UB+ASAN-Werror-aggressive.Fedora.x86_64.gcc:
- export CFLAGS="-std=c99 -O1 -g -Wno-cpp -Werror -fno-omit-frame-pointer -fsanitize=undefined,bool,alignment,null,enum,bounds-strict,address,leak,nonnull-attribute -fno-sanitize-recover=all -fsanitize-address-use-after-scope -DAGGRESSIVE_REALLOC"
- export CXXFLAGS="$CFLAGS"
- dash ./configure --cache-file $CCACHE_FILE --disable-doc --with-pkcs12-iter-count=10000
+ - sed -i 's/-fanalyzer//g' lib/Makefile
- sed -i 's/-Werror/-Wno-parentheses -Werror/g' src/Makefile
- make -j$BUILDJOBS
# Use $BUILDJOBS since the fuzzers should use mainly CPU (no blocking I/O)
@@ -255,6 +258,7 @@ UB+ASAN-Werror-aggressive.Fedora.x86_64.gcc:
- make -j$CHECKJOBS check -C tests
- dash ./configure --cache-file $CCACHE_FILE --disable-doc --with-pkcs12-iter-count=10000 --with-default-trust-store-pkcs11="pkcs11:" --with-system-priority-file=/etc/crypto-policies/back-ends/gnutls.config --with-default-priority-string=@SYSTEM
- make clean
+ - sed -i 's/-fanalyzer//g' lib/Makefile
- sed -i 's/-Werror/-Wno-parentheses -Werror/g' src/Makefile
- make -j$BUILDJOBS
# Use $BUILDJOBS since most of the job is building all tests, then just running 4 tests
@@ -279,6 +283,7 @@ UB+ASAN-Werror.Fedora.x86_64.gcc-aggressive:
- export CFLAGS="-std=c99 -O1 -g -Wno-cpp -Werror -fno-omit-frame-pointer -fsanitize=undefined,bool,alignment,null,enum,bounds-strict,address,leak,nonnull-attribute -fno-sanitize-recover=all -fsanitize-address-use-after-scope -DAGGRESSIVE_REALLOC"
- export CXXFLAGS="$CFLAGS"
- dash ./configure --cache-file $CCACHE_FILE --disable-doc --disable-hardware-acceleration
+ - sed -i 's/-fanalyzer//g' lib/Makefile
- sed -i 's/-Werror/-Wno-parentheses -Werror/g' src/Makefile
- make -j$BUILDJOBS
# Use $BUILDJOBS since the fuzzers should use mainly CPU (no blocking I/O)
@@ -291,6 +296,7 @@ UB+ASAN-Werror.Fedora.x86_64.gcc-aggressive:
- make -j$CHECKJOBS check -C tests
- dash ./configure --cache-file $CCACHE_FILE --disable-doc --disable-hardware-acceleration --with-default-trust-store-pkcs11="pkcs11:" --with-system-priority-file=/etc/crypto-policies/back-ends/gnutls.config --with-default-priority-string=@SYSTEM
- make clean
+ - sed -i 's/-fanalyzer//g' lib/Makefile
- sed -i 's/-Werror/-Wno-parentheses -Werror/g' src/Makefile
- make -j$BUILDJOBS
# Use $BUILDJOBS since most of the job is building all tests, then just running 4 tests