diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-01-19 00:26:59 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-01-19 00:26:59 +1000 |
commit | 839c4a99cddcacdc19dee42286b7029c4c1e7800 (patch) | |
tree | 326e53cb1ffbc8742e707f108467f6a42242cc88 /src | |
parent | 7b17b9059e30cef384ecca37feec87cdcdfd39b8 (diff) | |
download | minetest-839c4a99cddcacdc19dee42286b7029c4c1e7800.tar.gz minetest-839c4a99cddcacdc19dee42286b7029c4c1e7800.tar.bz2 minetest-839c4a99cddcacdc19dee42286b7029c4c1e7800.zip |
Fix bug in debug build
-O1 results in executables that are completely useless for actuall debugging
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4c71d418d..80f21a00a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -658,7 +658,7 @@ else() else() set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -fomit-frame-pointer") endif(APPLE) - set(CMAKE_CXX_FLAGS_DEBUG "-g -O1 -Wall ${WARNING_FLAGS} ${OTHER_FLAGS}") + set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall ${WARNING_FLAGS} ${OTHER_FLAGS}") if(USE_GPROF) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg") |