From: subhransu mohanty Date: Thu, 30 May 2019 00:22:24 +0000 (+0900) Subject: rlottie: disable RTTI use to optimize library size X-Git-Tag: submit/tizen/20190619.051039~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=094b18f7f478e9745a22f684806473da63a2a3b7;p=platform%2Fcore%2Fuifw%2Flottie-player.git rlottie: disable RTTI use to optimize library size --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 946becc..117c699 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ target_compile_options(rlottie -std=c++14 -O2 -fno-exceptions + -fno-rtti -Wall -Werror -Wextra diff --git a/meson.build b/meson.build index 83bcb05..9ecb8d2 100644 --- a/meson.build +++ b/meson.build @@ -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