From: subhransu mohanty Date: Thu, 30 May 2019 05:10:55 +0000 (+0900) Subject: rlottie: Use optimization level -Os to further reduce library size X-Git-Tag: accepted/tizen/unified/20190620.071909~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42b1eb4ed99afbbde34cb9dc17b97c001618a6e4;p=platform%2Fcore%2Fuifw%2Flottie-player.git rlottie: Use optimization level -Os to further reduce library size --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1013095..baacbb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ target_compile_options(rlottie PUBLIC PRIVATE -std=c++14 - -O2 + -Os -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables diff --git a/meson.build b/meson.build index 5d4cfe3..50d33ce 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', '-fno-rtti', +compiler_flags = ['-std=c++14', '-Os', '-Wall', '-Werror', '-Wextra', '-fno-exceptions', '-fno-rtti', '-fno-unwind-tables' , '-fno-asynchronous-unwind-tables', '-Wnon-virtual-dtor', '-Woverloaded-virtual', '-Wno-unused-parameter', '-fvisibility=hidden']