Add -fsanitize-address to LIBS so that it works with XCode

This commit is contained in:
initlife 2019-12-06 21:49:48 +08:00 committed by LiteSpeed Tech
parent 5c957fdcf6
commit d6937ddce0

View file

@ -52,6 +52,7 @@ IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
NOT "$ENV{TRAVIS}" MATCHES "^true$" AND
NOT "$ENV{EXTRA_CFLAGS}" MATCHES "-fsanitize")
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -fsanitize=address")
SET(LIBS ${LIBS} -fsanitize=address)
ENDIF()
# Uncomment to enable cleartext protocol mode (no crypto):
#SET (MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -DLSQUIC_ENABLE_HANDSHAKE_DISABLE=1")