aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc/msvc.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/msvc.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/msvc.txt')
-rw-r--r--src/build-data/cc/msvc.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/build-data/cc/msvc.txt b/src/build-data/cc/msvc.txt
index 8231c0429..c1b820b91 100644
--- a/src/build-data/cc/msvc.txt
+++ b/src/build-data/cc/msvc.txt
@@ -11,6 +11,7 @@ add_lib_option ""
compile_flags "/nologo /c"
optimization_flags "/O2"
+size_optimization_flags "/O1"
# for debug info in the object file:
#debug_info_flags "/Z7"