From 42e0f8c3a3a4cf6acf76d8f5a661f913aef738f0 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 16 May 2023 19:14:57 +0900 Subject: [PATCH] infra: enable strip flag only when it's requeted. $meson . build -Dstrip=false //off $meson . build -Dstrip=true //on --- meson.build | 2 +- src/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 496d71da..05ea2b96 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('thorvg', 'cpp', - default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s', 'cpp_std=c++14'], + default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s', 'cpp_std=c++14', 'strip=true'], version : '0.9.99', license : 'MIT') diff --git a/src/meson.build b/src/meson.build index 93541b1e..d1e84c0a 100644 --- a/src/meson.build +++ b/src/meson.build @@ -30,7 +30,7 @@ elif (cc.get_id() != 'msvc') compiler_flags += ['-mfpu=neon'] endif if get_option('b_sanitize') == 'none' - compiler_flags += ['-s', '-fno-exceptions', '-fno-rtti', '-fno-stack-protector', '-fno-math-errno', + compiler_flags += ['-fno-exceptions', '-fno-rtti', '-fno-stack-protector', '-fno-math-errno', '-fno-unwind-tables' , '-fno-asynchronous-unwind-tables', '-Woverloaded-virtual', '-Wno-unused-parameter'] endif