From 68f9daf6ac63dfe726736259f59f891b159f7f00 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Wed, 14 Mar 2018 00:12:00 -0500 Subject: [PATCH] Add -O3 optimization Also add debugging symbols in the unit test version (which we didn't have???) --- CMakeLists.txt | 2 +- tests/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d039289..af0313c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ project(erc) include(sources.cmake) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O3") set(CMAKE_COLOR_MAKEFILE OFF) if(DEFINED ENV{STATIC_ANALYSIS}) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 86c2386..421fcfc 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_COLOR_MAKEFILE OFF) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHEADLESS -DTESTING") if(DEFINED ENV{STATIC_ANALYSIS}) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --analyze") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --analyze -g -O3") endif() if(CMAKE_C_FLAGS MATCHES "--analyze")