Skip to content
Permalink
Browse files

Revert "Added optimization flag -O2 for GCC debug builds"

This reverts commit f0432c9.
"Added optimization flag -O2 for GCC debug builds"
  • Loading branch information
Oleksandr Byelkin
Oleksandr Byelkin committed Oct 2, 2019
1 parent 636d44a commit c6403c4c847d94ed6b40d3fd128e729271867e75
Showing with 0 additions and 4 deletions.
  1. +0 −4 CMakeLists.txt
@@ -135,11 +135,7 @@ SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DDBUG_OFF")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -DDBUG_OFF")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -DDBUG_OFF")


IF(CMAKE_COMPILER_IS_GNUCC)
#Turn on optimization for debug builds
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O2")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O2")
INCLUDE(CheckCCompilerFlag)
SET(GCC_FLAGS -Wunused -Wlogical-op -Wno-uninitialized -Wall -Wextra -Wformat-security -Wno-init-self -Wwrite-strings -Wshift-count-overflow -Wdeclaration-after-statement -Wno-undef -Wno-unknown-pragmas)
FOREACH(GCC_FLAG ${GCC_FLAGS})

0 comments on commit c6403c4

Please sign in to comment.
You can’t perform that action at this time.