improve devmode build options

This commit is contained in:
Valient Gough 2016-08-16 23:28:51 -07:00
parent cd89e60ff2
commit 2dc286b351
No known key found for this signature in database
GPG Key ID: B515DCEB95967051

View File

@ -1,4 +1,5 @@
# Script which sets up the CMake build for Debug mode.
# After running, chdir to the build subdir ane run "make"
mkdir build
cd build && cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fsanitize=address" $@
cd build && cmake .. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS="-O1 -fsanitize=address -fno-omit-frame-pointer" $@