From 1671541d2af24f3a4f69e5d3ed7f4a3d4b19012f Mon Sep 17 00:00:00 2001 From: Daniel Neus Date: Thu, 23 Mar 2017 23:05:37 +0100 Subject: 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 --- src/build-data/cc/msvc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/build-data') 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" -- cgit v1.2.3