rlottie: disable RTTI use to optimize library size
authorsubhransu mohanty <sub.mohanty@samsung.com>
Thu, 30 May 2019 00:22:24 +0000 (09:22 +0900)
committerHermet Park <hermetpark@gmail.com>
Wed, 19 Jun 2019 04:33:05 +0000 (13:33 +0900)
CMakeLists.txt
meson.build

index 946becc888808b8d6c3f45bac86c0e2810ba7aea..117c69958b811d66d3fcb7f5abec8a5bc75df24f 100644 (file)
@@ -26,6 +26,7 @@ target_compile_options(rlottie
                         -std=c++14
                         -O2
                         -fno-exceptions
+                        -fno-rtti
                         -Wall
                         -Werror
                         -Wextra
index 83bcb050e3610eb0c879f3765cd978ad25de7629..9ecb8d298f93dfc2c2afa1a6a93ac8a17a7e2531 100644 (file)
@@ -6,7 +6,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',
+compiler_flags = ['-std=c++14', '-O2', '-Wall', '-Werror', '-Wextra', '-fno-exceptions', '-fno-rtti',
                   '-Wnon-virtual-dtor', '-Woverloaded-virtual', '-Wno-unused-parameter', '-fvisibility=hidden']
 
 if get_option('asan') == true