From 6c8a50c5ca29be236cf5a4d57650ba0612fd1980 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 3 Nov 2021 19:47:48 +0900 Subject: [PATCH] optimize binary size. apply two more compiler options to reduce binary size. Saved about 7kb. --- src/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index 49a9be7..8d1a270 100644 --- a/src/meson.build +++ b/src/meson.build @@ -9,7 +9,7 @@ if (cc.get_id() != 'msvc') compiler_flags += ['-mfpu=neon'] endif if get_option('b_sanitize') == 'none' - compiler_flags += ['-fno-exceptions', '-fno-rtti', + compiler_flags += ['-s', '-fno-exceptions', '-fno-rtti', '-fno-stack-protector', '-fno-math-errno', '-fno-unwind-tables' , '-fno-asynchronous-unwind-tables', '-Woverloaded-virtual', '-Wno-unused-parameter'] endif -- 2.7.4