From 89686681c12419db16543a789f4b4ee0d296317f Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Tue, 13 Aug 2019 15:00:41 +0200 Subject: [PATCH] fix build system debug config to include -fno-omit-frame-pointer --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index 4223cc08..2dcae29d 100644 --- a/meson.build +++ b/meson.build @@ -443,6 +443,9 @@ add_project_arguments(cc.get_supported_arguments('-Werror=declaration-after-stat #### personality #### add_project_arguments(cc.get_supported_arguments('-fno-strict-aliasing'), language : 'c') +if get_option('buildtype').contains('debug') + add_project_arguments(cc.get_supported_arguments('-fno-omit-frame-pointer'), language : 'c') +endif if want_fuzzer if not cc.has_argument('-fsanitize=fuzzer-no-link')