Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit e38fc6c

Browse files
DrPizzary
authored andcommitted
Disable optimization in debug builds.
Enable full optimization in release builds.
1 parent 588ef72 commit e38fc6c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tools/all.gyp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
'msvs_settings': {
1010
'VCCLCompilerTool': {
1111
'RuntimeLibrary': 1, # static debug
12+
'Optimization': 0, # /Od, no optimization
1213
},
1314
},
1415
},
@@ -17,12 +18,25 @@
1718
'msvs_settings': {
1819
'VCCLCompilerTool': {
1920
'RuntimeLibrary': 0, # static release
21+
'Optimization': 3, # /Ox, full optimization
22+
'FavorSizeOrSpeed': 1, # /Ot, favour speed over size
23+
'InlineFunctionExpansion': 2, # /Ob2, inline anything eligible
24+
'WholeProgramOptimization': 'true', # /GL, whole program optimization, needed for LTCG
25+
},
26+
'VCLinkerTool': {
27+
'LinkTimeCodeGeneration': 1, # link-time code generation
2028
},
2129
},
2230
}
2331
},
2432
'msvs_settings': {
2533
'VCCLCompilerTool': {
34+
'StringPooling': 'true', # pool string literals
35+
'DebugInformationFormat': 3, # Generate a PDB
36+
'AdditionalOptions': [
37+
'/MP', # compile across multiple CPUs, VC2008 setting
38+
],
39+
'MultiProcessorCompilation': 'true', # compile across multiple CPUs, VC2010 setting
2640
},
2741
'VCLibrarianTool': {
2842
},

0 commit comments

Comments
 (0)