mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
optimize binary size.
apply two more compiler options to reduce binary size. Saved about 7kb.
This commit is contained in:
parent
9f914d596e
commit
b705822732
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue