File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
GPU/GPUTracking/Standalone Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,6 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
5050
5151if (GPUCA_BUILD_DEBUG)
5252 set (CMAKE_CXX_FLAGS "-O0 -ggdb" )
53- if (GPUCA_BUILD_DEBUG_SANITIZE)
54- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address,undefined -fno-sanitize=vptr" ) #TODO: Check why this does not work with clang
55- endif ()
5653 set (CMAKE_BUILD_TYPE DEBUG)
5754else ()
5855 set (CMAKE_CXX_FLAGS "-O3 -march=native -ggdb -minline-all-stringops -funroll-loops -fno-stack-protector" )
6764 set (CMAKE_BUILD_TYPE RELEASE)
6865 add_definitions (-DNDEBUG)
6966endif ()
67+ if (GPUCA_BUILD_DEBUG_SANITIZE)
68+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address,undefined -fno-sanitize=vptr" ) #TODO: Check why this does not work with clang
69+ endif ()
7070set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error -Wall -Wextra -Wshadow -Wno-unused-function -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-write-strings" )
7171set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -rdynamic -Wl,--no-undefined" )
7272
You can’t perform that action at this time.
0 commit comments