File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ option(BUILD_TESTS "Compile the tests" OFF)
2222option (BUILD_SHARED_LIBS "Build shared libraries" ON )
2323option (WITH_TENSOR_PARALLEL "Compile with NCCL and MPI backend" OFF )
2424option (WITH_FLASH_ATTN "Compile with Flash Attention 2" OFF )
25- option (GOOGLE_ADDRESS_SANITIZER "ASAN" OFF )
25+ option (ENABLE_ADDRESS_SANITIZER "ASAN" OFF )
2626
2727MESSAGE (STATUS "Compiler Id: ${CMAKE_CXX_COMPILER_ID} " )
2828MESSAGE (STATUS "Compiler Version: ${CMAKE_CXX_COMPILER_VERSION} " )
@@ -450,13 +450,13 @@ if (WITH_RUY)
450450 list (APPEND LIBRARIES ruy)
451451endif ()
452452
453- IF (GOOGLE_ADDRESS_SANITIZER AND (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "DEBUG" ))
454- MESSAGE (STATUS "GOOGLE_ADDRESS_SANITIZER : ENABLED" )
453+ IF (ENABLE_ADDRESS_SANITIZER AND (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "DEBUG" ))
454+ MESSAGE (STATUS "ENABLE_ADDRESS_SANITIZER : ENABLED" )
455455 set (ASAN_FLAGS " -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-common" )
456456 string (APPEND CMAKE_C_FLAGS ${ASAN_FLAGS} )
457457 string (APPEND CMAKE_CXX_FLAGS ${ASAN_FLAGS} )
458458 add_link_options (-fsanitize=address)
459- ELSEIF (GOOGLE_ADDRESS_SANITIZER )
459+ ELSEIF (ENABLE_ADDRESS_SANITIZER )
460460 MESSAGE (FATAL_ERROR "SANITIZER requires Debug build type" )
461461ENDIF ()
462462
You can’t perform that action at this time.
0 commit comments