rlottie: Use optimization level -Os to further reduce library size
authorsubhransu mohanty <sub.mohanty@samsung.com>
Thu, 30 May 2019 05:10:55 +0000 (14:10 +0900)
committerHermet Park <hermetpark@gmail.com>
Wed, 19 Jun 2019 04:33:45 +0000 (13:33 +0900)
CMakeLists.txt
meson.build

index 1013095..baacbb9 100644 (file)
@@ -24,7 +24,7 @@ target_compile_options(rlottie
                     PUBLIC
                     PRIVATE
                         -std=c++14
-                        -O2
+                        -Os
                         -fno-exceptions
                         -fno-unwind-tables
                         -fno-asynchronous-unwind-tables
index 5d4cfe3..50d33ce 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', '-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']