optimize binary size.

apply two more compiler options to reduce binary size.

Saved about 7kb.
This commit is contained in:
Hermet Park 2021-11-03 19:47:48 +09:00 committed by Hermet Park
parent 9f914d596e
commit b705822732

View file

@ -9,7 +9,7 @@ if (cc.get_id() != 'msvc')
compiler_flags += ['-mfpu=neon'] compiler_flags += ['-mfpu=neon']
endif endif
if get_option('b_sanitize') == 'none' 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', '-fno-unwind-tables' , '-fno-asynchronous-unwind-tables',
'-Woverloaded-virtual', '-Wno-unused-parameter'] '-Woverloaded-virtual', '-Wno-unused-parameter']
endif endif