File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1515cmake_minimum_required (VERSION 3.3)
1616project (mapcode_cpp)
1717
18+ # The debug configuration adds the "address sanitizer" to check for out of bounds behavior and such.
19+ # You may wish to set the following environment variables during runtime as well:
20+ #
21+ # export ASAN_OPTIONS=verbosity=2:coverage=true:strict_string_checks=1:replace_str=true:
22+ # replace_intrin=true:detect_stack_use_after_return=true:detect_invalid_pointer_pairs=99999:
23+ # detect_container_overflow=true:detect_odr_violation=2
24+
1825set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Werror -fsanitize=address -O1 -fno-common -fno-optimize-sibling-calls -fno-omit-frame-pointer" )
1926set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11" )
2027set (CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -fsanitize=address" )
You can’t perform that action at this time.
0 commit comments