meson: added compiler flags to optimize binary size

this reduced library size from 153KB to 119KB.

Change-Id: Ie70e5412b42d864fbaa827eec21b3cbc1e8f26af
This commit is contained in:
Subhransu Mohanty 2020-08-21 16:53:56 +09:00 committed by Hermet Park
parent a9b587d930
commit aad5496c37

View 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