aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Neus <[email protected]>2017-03-23 23:05:37 +0100
committerDaniel Neus <[email protected]>2017-04-04 11:40:23 +0200
commit1671541d2af24f3a4f69e5d3ed7f4a3d4b19012f (patch)
tree068923a131efafbb24c80b40a87ad12ed8670651 /src
parent9474d89970157f7a6c6bdc5044025170a90f27b2 (diff)
Add some MSVC compiler flags
/Oi enabled in release builds: generates intrinsic functions for appropriate function calls https://msdn.microsoft.com/en-us/library/f99tchzc.aspx /Os if `--optimize-for-size` is used: tells the compiler to favor optimizations for size over optimizations for speed https://msdn.microsoft.com/en-us/library/f9534wye.aspx
Diffstat (limited to 'src')
-rw-r--r--src/build-data/cc/msvc.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build-data/cc/msvc.txt b/src/build-data/cc/msvc.txt
index edf34017d..4d97f9d57 100644
--- a/src/build-data/cc/msvc.txt
+++ b/src/build-data/cc/msvc.txt
@@ -10,8 +10,8 @@ add_lib_option ""
compile_flags "/nologo /c"
-optimization_flags "/O2"
-size_optimization_flags "/O1"
+optimization_flags "/O2 /Oi"
+size_optimization_flags "/O1 /Os"
# for debug info in the object file:
#debug_info_flags "/Z7"