optimize binary size.
authorHermet Park <chuneon.park@samsung.com>
Wed, 3 Nov 2021 10:47:48 +0000 (19:47 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 4 Nov 2021 00:39:17 +0000 (09:39 +0900)
apply two more compiler options to reduce binary size.

Saved about 7kb.

src/meson.build

index 49a9be7..8d1a270 100644 (file)
@@ -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