aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc/gcc.txt
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-03 11:52:32 -0400
committerJack Lloyd <[email protected]>2016-11-03 11:52:32 -0400
commitb1021ca76bb3c47b1b520421ccece38d772e5907 (patch)
tree7991dd83c4ab3d443b2d34c6a8d3bdaaf08e352c /src/build-data/cc/gcc.txt
parent277b4f703ba6354a37b5d12adebfc4f726cc72af (diff)
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]
Diffstat (limited to 'src/build-data/cc/gcc.txt')
-rw-r--r--src/build-data/cc/gcc.txt1
1 files changed, 1 insertions, 0 deletions
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"