rlottie: Optimize library size by disabling exception table generation (.eh_frame...
authorsubhransu mohanty <sub.mohanty@samsung.com>
Thu, 30 May 2019 04:40:57 +0000 (13:40 +0900)
committerHermet Park <hermetpark@gmail.com>
Wed, 19 Jun 2019 04:33:40 +0000 (13:33 +0900)
CMakeLists.txt
meson.build

index 117c699..1013095 100644 (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
index 9ecb8d2..5d4cfe3 100644 (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