From 42b1eb4ed99afbbde34cb9dc17b97c001618a6e4 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Thu, 30 May 2019 14:10:55 +0900 Subject: [PATCH] rlottie: Use optimization level -Os to further reduce library size --- CMakeLists.txt | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'] -- 2.34.1