1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-21 08:30:55 +00:00

Add -O3 optimization

Also add debugging symbols in the unit test version (which we didn't
have???)
This commit is contained in:
Peter Evans 2018-03-14 00:12:00 -05:00
parent 47bbed1399
commit 68f9daf6ac
2 changed files with 2 additions and 2 deletions

View File

@ -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})

View File

@ -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")