Compile flags should be set on a per-module basis

Delete global compiler flags for coverage.
This commit is contained in:
Brendan Moran 2015-12-16 07:57:58 -08:00
parent 90c91111fa
commit c4c4ec88bd
2 changed files with 0 additions and 3 deletions

View file

@ -32,7 +32,5 @@ set(CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT "-Os -g -gdwarf-3 -DNDEBUG")
set(CMAKE_INCLUDE_SYSTEM_FLAG_ASM "-isystem ")
if(YOTTA_CFG_DEBUG_OPTIONS_COVERAGE)
set(CMAKE_C_FLAGS_DEBUG_INIT "${CMAKE_C_FLAGS_DEBUG_INIT} -fprofile-arcs -ftest-coverage")
set(CMAKE_ASM_FLAGS_DEBUG_INIT "${CMAKE_ASM_FLAGS_DEBUG_INIT} -fprofile-arcs -ftest-coverage")
set(CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_LINK_EXECUTABLE} -fprofile-arcs -lgcov")
endif()

View file

@ -35,6 +35,5 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-Os -g -gdwarf-3 -DNDEBUG")
set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")
if(YOTTA_CFG_DEBUG_OPTIONS_COVERAGE)
set(CMAKE_CXX_FLAGS_DEBUG_INIT "${CMAKE_CXX_FLAGS_DEBUG_INIT} -fprofile-arcs -ftest-coverage")
set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -fprofile-arcs -lgcov")
endif()