CI: re-enable gcc asan builds

for some unclear reasons asan builds were limited to clang only. let us
enable them for gcc as well
This commit is contained in:
Ilya Shipitsin 2022-07-02 10:30:28 +05:00 committed by William Lallemand
parent 3214b44702
commit cfba1f93af

9
.github/matrix.py vendored
View File

@ -57,7 +57,6 @@ def clean_compression(compression):
def get_asan_flags(cc): def get_asan_flags(cc):
if cc == "clang":
return [ return [
"USE_OBSOLETE_LINKER=1", "USE_OBSOLETE_LINKER=1",
'DEBUG_CFLAGS="-g -fsanitize=address"', 'DEBUG_CFLAGS="-g -fsanitize=address"',
@ -65,8 +64,6 @@ def get_asan_flags(cc):
'CPU_CFLAGS.generic="-O1"', 'CPU_CFLAGS.generic="-O1"',
] ]
raise ValueError("ASAN is only supported for clang")
matrix = [] matrix = []
@ -160,9 +157,9 @@ for CC in ["gcc", "clang"]:
# ASAN # ASAN
os = "ubuntu-latest" os = "ubuntu-latest"
CC = "clang"
TARGET = "linux-glibc" TARGET = "linux-glibc"
matrix.append( for CC in ["gcc","clang"]:
matrix.append(
{ {
"name": "{}, {}, ASAN, all features".format(clean_os(os), CC), "name": "{}, {}, ASAN, all features".format(clean_os(os), CC),
"os": os, "os": os,
@ -190,7 +187,7 @@ matrix.append(
"51DEGREES_SRC=addons/51degrees/dummy/pattern", "51DEGREES_SRC=addons/51degrees/dummy/pattern",
], ],
} }
) )
# macOS # macOS