Skip to content
Permalink
Browse files

Added -O2 option for gcc debug build

  • Loading branch information
9EOR9 committed Sep 4, 2019
1 parent 544b6f1 commit f7322cc40b87efc8d533d44b1b831962cb1dbc73
Showing with 1 addition and 0 deletions.
  1. +1 −0 CMakeLists.txt
@@ -136,6 +136,7 @@ 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 f7322cc

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