Bugfixes.
This commit is contained in:
parent
179e77d612
commit
8d8c0f7a4e
@ -26,7 +26,7 @@ option(SANITIZE_ADDRESS "Enable AddressSanitizer for sanitized targets." Off)
|
|||||||
|
|
||||||
set(FLAG_CANDIDATES
|
set(FLAG_CANDIDATES
|
||||||
# Clang 3.2+ use this version. The no-omit-frame-pointer option is optional.
|
# Clang 3.2+ use this version. The no-omit-frame-pointer option is optional.
|
||||||
"-g -sanitize=address -fno-omit-frame-pointer"
|
"-g -fsanitize=address -fno-omit-frame-pointer"
|
||||||
"-g -fsanitize=address"
|
"-g -fsanitize=address"
|
||||||
|
|
||||||
# Older deprecated flag for ASan
|
# Older deprecated flag for ASan
|
||||||
|
@ -117,7 +117,7 @@ function (sanitizer_check_compiler_flags FLAG_CANDIDATES NAME PREFIX)
|
|||||||
if (${PREFIX}_FLAG_DETECTED)
|
if (${PREFIX}_FLAG_DETECTED)
|
||||||
# If compiler is a GNU compiler, search for static flag, if
|
# If compiler is a GNU compiler, search for static flag, if
|
||||||
# SANITIZE_LINK_STATIC is enabled.
|
# SANITIZE_LINK_STATIC is enabled.
|
||||||
if (SANITIZE_LINK_STATIC)
|
if (SANITIZE_LINK_STATIC AND (${COMPILER} STREQUAL "GNU"))
|
||||||
string(TOLOWER ${PREFIX} PREFIX_lower)
|
string(TOLOWER ${PREFIX} PREFIX_lower)
|
||||||
sanitizer_check_compiler_flag(
|
sanitizer_check_compiler_flag(
|
||||||
"-static-lib${PREFIX_lower}" ${LANG}
|
"-static-lib${PREFIX_lower}" ${LANG}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user