diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-10-11 14:01:20 +0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-10-11 06:10:18 +0000 |
commit | 1613c945a662a52eb18a56866806693de6619c6c (patch) | |
tree | ab5f9672b017a1331cb7833f8a71820174635ecd /cmake/cmake.d/01-build_options.cmake | |
parent | d639f428a4608a3afa3cf129e8116f484a189d9a (diff) |
cmake: coverage: disable compiler optimization for COVERAGE buildflounder_6.0.3flounder_6.0.2flounder_6.0.1flounder/6.0.3flounder/6.0.2flounder/6.0.16.0.36.0.26.0.1
Switch to -O0 compile option to allow more accurate coverage reports
that function inlining and OOO execution can skew.
Bug-AGL: SPEC-1807
Change-Id: If3ea7e9fe931ac9087d4c4966d0b3ca77308eaf7
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'cmake/cmake.d/01-build_options.cmake')
-rw-r--r-- | cmake/cmake.d/01-build_options.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/cmake.d/01-build_options.cmake b/cmake/cmake.d/01-build_options.cmake index 26b001d..abd6734 100644 --- a/cmake/cmake.d/01-build_options.cmake +++ b/cmake/cmake.d/01-build_options.cmake @@ -90,7 +90,7 @@ endforeach() ################################################## set(PROFILING_COMPILE_OPTIONS -g -O0 -pg -Wp,-U_FORTIFY_SOURCE CACHE STRING "Compilation flags for PROFILING build type.") set(DEBUG_COMPILE_OPTIONS -g -ggdb CACHE STRING "Compilation flags for DEBUG build type.") -set(COVERAGE_COMPILE_OPTIONS -g --coverage CACHE STRING "Compilation flags for COVERAGE build type.") +set(COVERAGE_COMPILE_OPTIONS -g -O0 --coverage CACHE STRING "Compilation flags for COVERAGE build type.") set(RELEASE_COMPILE_OPTIONS -O2 -D_FORTIFY_SOURCE=2 CACHE STRING "Compilation flags for RELEASE build type.") foreach(option ${PROFILING_COMPILE_OPTIONS}) add_compile_options($<$<CONFIG:PROFILING>:${option}>) |