summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-07-18 18:27:33 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-07-18 18:27:33 +0200
commit5629d4c5af98b276f80fd9e20a03dd59bbd03b92 (patch)
tree7031aba09efaeaf2997a738bf3ed81bdbf855820
parent57e4129b52ea2dcffccfa981f4e3229339ab79f3 (diff)
-pg flags belongs to profiling more than debug
Change-Id: Iab550cc5653c7ef1094a8960aca9ca64f1aee1a4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--cmake/cmake.d/04-build_options.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/cmake.d/04-build_options.cmake b/cmake/cmake.d/04-build_options.cmake
index c48e8cd..d1b25f4 100644
--- a/cmake/cmake.d/04-build_options.cmake
+++ b/cmake/cmake.d/04-build_options.cmake
@@ -77,12 +77,12 @@ add_compile_options(-fPIC)
##################################################
add_compile_options($<$<OR:$<CONFIG:DEBUG>,$<CONFIG:PROFILING>,$<CONFIG:CCOV>>:-g>)
-add_compile_options($<$<CONFIG:DEBUG>:-pg>)
add_compile_options($<$<CONFIG:DEBUG>:-ggdb>)
add_compile_options($<$<CONFIG:CCOV>:--coverage>)
add_compile_options($<$<CONFIG:DEBUG>:-Og>)
add_compile_options($<$<CONFIG:PROFILING>:-O0>)
+add_compile_options($<$<CONFIG:PROFILING>:-pg>)
add_compile_options($<$<OR:$<CONFIG:CCOV>,$<CONFIG:PROFILING>>:-O2>)
add_compile_options($<$<OR:$<CONFIG:DEBUG>,$<CONFIG:PROFILING>>:-Wp,-U_FORTIFY_SOURCE>)