From 306f0fea624557926ebbd67be0c943e1aa0139e9 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Wed, 6 Mar 2019 16:54:33 +0000 Subject: Improve Debug building - add -O1 to make FORTIFY_SOURCE happy (eliminate compiler warnings) - canonicalize CMAKE_CXX_FLAGS_DEBUG to avoid unnecessary recompilation Both issues were introduced with f7fc3d3a7f8f51a01cd1dfb261c3e234617e092e --- CMakeScripts/DefineDependsandFlags.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeScripts') diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index 4cb63aae8..6a842654c 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -23,6 +23,7 @@ list(APPEND INKSCAPE_CXX_FLAGS "-Werror=format") # e.g.: printf(" list(APPEND INKSCAPE_CXX_FLAGS "-Werror=format-security") # e.g.: printf(variable); list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-D_FORTIFY_SOURCE=2") if (CMAKE_COMPILER_IS_GNUCC) +list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-Og") # for _FORTIFY_SOURCE list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables") if(CXX_COMPILER_VERSION VERSION_GREATER 8.0) list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-fstack-clash-protection -fcf-protection") -- cgit v1.2.3