From b1021ca76bb3c47b1b520421ccece38d772e5907 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 3 Nov 2016 11:52:32 -0400 Subject: Add new configure argument --optimize-for-size Uses -Os for GCC/Clang/ICC, /O1 for MSVC. Might be used in the future to control compile time features also (eg using a large precomputed table, vs not). Does not have any influence on module selection, just informs the build that a smaller binary is preferable. [ci skip] --- src/build-data/cc/gcc.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/build-data/cc/gcc.txt') diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt index b086583ff..b88454ce6 100644 --- a/src/build-data/cc/gcc.txt +++ b/src/build-data/cc/gcc.txt @@ -17,6 +17,7 @@ maintainer_warning_flags "-Wold-style-cast -Wsuggest-override -Wshadow -Werror - compile_flags "-c" debug_info_flags "-g" optimization_flags "-O3" +size_optimization_flags "-Os" shared_flags "-fPIC" coverage_flags "--coverage" -- cgit v1.2.3