Change debug optimization level back to -O1
authorkwolekr <kwolekr@minetest.net>
Wed, 3 Jul 2013 01:48:13 +0000 (21:48 -0400)
committerkwolekr <kwolekr@minetest.net>
Wed, 3 Jul 2013 01:48:18 +0000 (21:48 -0400)
src/CMakeLists.txt

index 2b60ff0d2e60f9f7f695e4094a66c92c6a57e620..fae23b821ba6cf8fbfbd9109b3fceb254dec6298 100644 (file)
@@ -489,7 +489,7 @@ else()
        endif()
 
        set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${RELEASE_WARNING_FLAGS} ${WARNING_FLAGS} ${OTHER_FLAGS} -O3 -ffast-math -Wall -fomit-frame-pointer -pipe -funroll-loops")
-       set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall ${WARNING_FLAGS} ${OTHER_FLAGS}")
+       set(CMAKE_CXX_FLAGS_DEBUG "-g -O1 -Wall ${WARNING_FLAGS} ${OTHER_FLAGS}")
 
        if(USE_GPROF)
                set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg")