rlottie: Optimize library size by disabling exception table generation (.eh_frame section)

This commit is contained in:
subhransu mohanty 2019-05-30 13:40:57 +09:00 committed by Subhransu
parent 8e029e1c32
commit 7dc52c6b41
2 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,8 @@ target_compile_options(rlottie
-std=c++14
-O2
-fno-exceptions
-fno-unwind-tables
-fno-asynchronous-unwind-tables
-fno-rtti
-Wall
-Werror

View File

@ -7,6 +7,7 @@ rlottie_lib_version = '0.0.1'
add_global_arguments('-DDEMO_DIR="@0@/example/resource/"'.format(meson.current_source_dir()), language : 'cpp')
compiler_flags = ['-std=c++14', '-O2', '-Wall', '-Werror', '-Wextra', '-fno-exceptions', '-fno-rtti',
'-fno-unwind-tables' , '-fno-asynchronous-unwind-tables',
'-Wnon-virtual-dtor', '-Woverloaded-virtual', '-Wno-unused-parameter', '-fvisibility=hidden']
if get_option('asan') == true