mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-18 03:26:55 +00:00
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:
parent
3214b44702
commit
cfba1f93af
75
.github/matrix.py
vendored
75
.github/matrix.py
vendored
@ -57,15 +57,12 @@ 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"',
|
'LDFLAGS="-fsanitize=address"',
|
||||||
'LDFLAGS="-fsanitize=address"',
|
'CPU_CFLAGS.generic="-O1"',
|
||||||
'CPU_CFLAGS.generic="-O1"',
|
]
|
||||||
]
|
|
||||||
|
|
||||||
raise ValueError("ASAN is only supported for clang")
|
|
||||||
|
|
||||||
|
|
||||||
matrix = []
|
matrix = []
|
||||||
@ -160,37 +157,37 @@ 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),
|
{
|
||||||
"os": os,
|
"name": "{}, {}, ASAN, all features".format(clean_os(os), CC),
|
||||||
"TARGET": TARGET,
|
"os": os,
|
||||||
"CC": CC,
|
"TARGET": TARGET,
|
||||||
"FLAGS": get_asan_flags(CC)
|
"CC": CC,
|
||||||
+ [
|
"FLAGS": get_asan_flags(CC)
|
||||||
"USE_ZLIB=1",
|
+ [
|
||||||
"USE_OT=1",
|
"USE_ZLIB=1",
|
||||||
"OT_INC=${HOME}/opt-ot/include",
|
"USE_OT=1",
|
||||||
"OT_LIB=${HOME}/opt-ot/lib",
|
"OT_INC=${HOME}/opt-ot/include",
|
||||||
"OT_RUNPATH=1",
|
"OT_LIB=${HOME}/opt-ot/lib",
|
||||||
"USE_PCRE=1",
|
"OT_RUNPATH=1",
|
||||||
"USE_PCRE_JIT=1",
|
"USE_PCRE=1",
|
||||||
"USE_LUA=1",
|
"USE_PCRE_JIT=1",
|
||||||
"USE_OPENSSL=1",
|
"USE_LUA=1",
|
||||||
"USE_SYSTEMD=1",
|
"USE_OPENSSL=1",
|
||||||
"USE_WURFL=1",
|
"USE_SYSTEMD=1",
|
||||||
"WURFL_INC=addons/wurfl/dummy",
|
"USE_WURFL=1",
|
||||||
"WURFL_LIB=addons/wurfl/dummy",
|
"WURFL_INC=addons/wurfl/dummy",
|
||||||
"USE_DEVICEATLAS=1",
|
"WURFL_LIB=addons/wurfl/dummy",
|
||||||
"DEVICEATLAS_SRC=addons/deviceatlas/dummy",
|
"USE_DEVICEATLAS=1",
|
||||||
"USE_PROMEX=1",
|
"DEVICEATLAS_SRC=addons/deviceatlas/dummy",
|
||||||
"USE_51DEGREES=1",
|
"USE_PROMEX=1",
|
||||||
"51DEGREES_SRC=addons/51degrees/dummy/pattern",
|
"USE_51DEGREES=1",
|
||||||
],
|
"51DEGREES_SRC=addons/51degrees/dummy/pattern",
|
||||||
}
|
],
|
||||||
)
|
}
|
||||||
|
)
|
||||||
|
|
||||||
# macOS
|
# macOS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user