mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-24 15:19:06 +00:00
meson: added compiler flags to optimize binary size
this reduced library size from 153KB to 119KB. Change-Id: Ie70e5412b42d864fbaa827eec21b3cbc1e8f26af
This commit is contained in:
parent
a9b587d930
commit
aad5496c37
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue