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} " )
@@ -480,13 +480,13 @@ if (WITH_RUY)
480480 list (APPEND LIBRARIES ruy)
481481endif ()
482482
483- IF (GOOGLE_ADDRESS_SANITIZER AND (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "DEBUG" ))
484- MESSAGE (STATUS "GOOGLE_ADDRESS_SANITIZER : ENABLED" )
483+ IF (ENABLE_ADDRESS_SANITIZER AND (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "DEBUG" ))
484+ MESSAGE (STATUS "ENABLE_ADDRESS_SANITIZER : ENABLED" )
485485 set (ASAN_FLAGS " -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-common" )
486486 string (APPEND CMAKE_C_FLAGS ${ASAN_FLAGS} )
487487 string (APPEND CMAKE_CXX_FLAGS ${ASAN_FLAGS} )
488488 add_link_options (-fsanitize=address)
489- ELSEIF (GOOGLE_ADDRESS_SANITIZER )
489+ ELSEIF (ENABLE_ADDRESS_SANITIZER )
490490 MESSAGE (FATAL_ERROR "SANITIZER requires Debug build type" )
491491ENDIF ()
492492
You can’t perform that action at this time.
0 commit comments