Commit 2c9d33ef by Marvin Scholz

Cleanup: Use AS_CASE for sanitizer matching in configure

parent 1289c48b
Pipeline #258 failed with stage
in 11 seconds
......@@ -64,15 +64,18 @@ AS_VAR_IF(with_sanitizer, no, [], [
])
AX_APPEND_FLAG([-g])
AS_IF([test -z "${with_sanitizer##*address*}" ], [
AX_APPEND_COMPILE_FLAGS([-fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=pointer-compare -fsanitize=pointer-subtract])
])
AS_IF([test -z "${with_sanitizer##*memory*}" ], [
AS_CASE("${with_sanitizer}",
[address], [
AX_APPEND_COMPILE_FLAGS([-fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=pointer-compare -fsanitize=pointer-subtract])
],
[memory], [
AX_APPEND_COMPILE_FLAGS([-fPIE -pie])
])
AS_IF([test -z "${with_sanitizer##*thread*}" ], [
],
[thread], [
AX_APPEND_COMPILE_FLAGS([-fPIE -pie])
])
],
[]
)
])
dnl Check for attributes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment