Skip to content

Commit

Permalink
tests/CMakeList.txt: Disable optimizations for better error output an…
Browse files Browse the repository at this point in the history
…d shorter compile times

This compiles on this developers machine now in < 3 minutes instead of
20.
  • Loading branch information
t-b committed Aug 30, 2019
1 parent 5d83e5e commit 5cfa1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ option(JSON_Coverage "Build test suite with coverage information" OFF)
if(JSON_Sanitizer)
message(STATUS "Building test suite with Clang sanitizer")
if(NOT MSVC)
set(CMAKE_CXX_FLAGS "-g -O2 -fsanitize=address -fsanitize=undefined -fsanitize=integer -fsanitize=nullability -fno-omit-frame-pointer -fno-sanitize-recover=all")
set(CMAKE_CXX_FLAGS "-g -O0 -fsanitize=address -fsanitize=undefined -fsanitize=integer -fsanitize=nullability -fno-omit-frame-pointer -fno-sanitize-recover=all")
endif()
endif()

Expand Down

0 comments on commit 5cfa1ac

Please sign in to comment.