disable blacklist for gcc
@@ -724,9 +724,14 @@ module _BASE_UNIT {
SANITIZER_DEFINED=no
when ($SANITIZER_TYPE && $SANITIZER_TYPE != "no" && $SANITIZER_TYPE != "pg") {
- CFLAGS+=-fsanitize=$SANITIZER_TYPE -D${SANITIZER_TYPE}_sanitizer_enabled -fsanitize-blacklist=${input:"build/sanitize-blacklist.txt"} $SANITIZER_CFLAGS
- LDFLAGS+=-fsanitize=$SANITIZER_TYPE -fsanitize-blacklist=${input:"build/sanitize-blacklist.txt"}
+ CFLAGS+=-fsanitize=$SANITIZER_TYPE -D${SANITIZER_TYPE}_sanitizer_enabled $SANITIZER_CFLAGS
+ LDFLAGS+=-fsanitize=$SANITIZER_TYPE
SANITIZER_DEFINED=yes
+
+ when ($CLANG) {
+ CFLAGS+=-fsanitize-blacklist=${input:"build/sanitize-blacklist.txt"}
+ LDFLAGS+=-fsanitize-blacklist=${input:"build/sanitize-blacklist.txt"}
+ }
}
when ($SANITIZE_COVERAGE && $SANITIZE_COVERAGE != "no") {
