From 5629d4c5af98b276f80fd9e20a03dd59bbd03b92 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 18 Jul 2017 18:27:33 +0200 Subject: -pg flags belongs to profiling more than debug Change-Id: Iab550cc5653c7ef1094a8960aca9ca64f1aee1a4 Signed-off-by: Romain Forlot --- cmake/cmake.d/04-build_options.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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($<$,$,$>:-g>) -add_compile_options($<$:-pg>) add_compile_options($<$:-ggdb>) add_compile_options($<$:--coverage>) add_compile_options($<$:-Og>) add_compile_options($<$:-O0>) +add_compile_options($<$:-pg>) add_compile_options($<$,$>:-O2>) add_compile_options($<$,$>:-Wp,-U_FORTIFY_SOURCE>) -- cgit 1.2.3-korg