meson: added compiler flags to optimize binary size 93/241993/1
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Fri, 21 Aug 2020 07:53:56 +0000 (16:53 +0900)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Fri, 21 Aug 2020 07:54:28 +0000 (16:54 +0900)
this reduced library size from 153KB to 119KB.

Change-Id: Ie70e5412b42d864fbaa827eec21b3cbc1e8f26af

src/meson.build

index 40d85ce..1fb8989 100644 (file)
@@ -6,6 +6,9 @@ if (cc.get_id() != 'msvc')
         compiler_flags += ['-mavx']
         message('Enable Advanced Vector Extension')
     endif
+    compiler_flags += ['-fno-exceptions', '-fno-rtti',
+                       '-fno-unwind-tables' , '-fno-asynchronous-unwind-tables',
+                       '-Woverloaded-virtual', '-Wno-unused-parameter']
 endif