Skip to content
Permalink
Browse files

Revert "Added -O2 option for gcc debug build"

This reverts commit f7322cc.
  • Loading branch information
9EOR9 committed Sep 4, 2019
1 parent f7322cc commit 0c294931cf81bd9ed733c8356c7ee781174717ff
Showing with 0 additions and 1 deletion.
  1. +0 −1 CMakeLists.txt
@@ -136,7 +136,6 @@ 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)
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_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 0c29493

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