diff --git a/cmake/develop.cmake b/cmake/develop.cmake index e9ec2529..864fb2b5 100644 --- a/cmake/develop.cmake +++ b/cmake/develop.cmake @@ -39,11 +39,7 @@ int main() endmacro() # Enable address sanitizer -if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - option(ENABLE_SANITIZER "Enable sanitizer(Debug+Gcc/Clang/AppleClang)" OFF) -else() - option(ENABLE_SANITIZER "Enable sanitizer(Debug+Gcc/Clang/AppleClang)" ON) -endif() +option(ENABLE_SANITIZER "Enable sanitizer(Debug+Gcc/Clang/AppleClang)" ON) if(ENABLE_SANITIZER AND NOT MSVC) if(CMAKE_BUILD_TYPE STREQUAL "Debug") check_asan(HAS_ASAN)