File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
GPU/GPUTracking/Standalone Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
4949set (CMAKE_POSITION_INDEPENDENT_CODE ON )
5050
5151if (GPUCA_BUILD_DEBUG)
52- set (CMAKE_CXX_FLAGS "-O0 -ggdb" ) # -fsanitize=address,undefined -fno-sanitize=vptr
52+ 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" )
55+ endif ()
5356 set (CMAKE_BUILD_TYPE DEBUG)
5457else ()
5558 set (CMAKE_CXX_FLAGS "-O3 -march=native -ggdb -minline-all-stringops -funroll-loops -fno-stack-protector" )
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ set(GPUCA_BUILD_EVENT_DISPLAY_QT 1)
2929set (GPUCA_CONFIG_GL3W 0)
3030set (GPUCA_CONFIG_O2 1)
3131set (GPUCA_BUILD_DEBUG 0)
32+ set (GPUCA_BUILD_DEBUG_SANITIZE 0)
3233set (GPUCA_NO_FAST_MATH 0)
3334#set(GPUCA_CUDA_GCCBIN c++-13)
3435#set(GPUCA_OPENCL_CLANGBIN clang-18)
You can’t perform that action at this time.
0 commit comments