diff options
author | Peter Bright <drpizza@quiscalusmexicanus.org> | 2011-08-07 19:46:26 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-08-07 14:22:59 -0700 |
commit | e38fc6cc843c26a886cd16acad2585397d11924d (patch) | |
tree | ad30d02e820363c71a7189d103e5211338fe1161 /tools | |
parent | 588ef72ce02595e954aa28b1805e09d937a0ec5e (diff) | |
download | nodejs-e38fc6cc843c26a886cd16acad2585397d11924d.tar.gz nodejs-e38fc6cc843c26a886cd16acad2585397d11924d.tar.bz2 nodejs-e38fc6cc843c26a886cd16acad2585397d11924d.zip |
Disable optimization in debug builds.
Enable full optimization in release builds.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/all.gyp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/all.gyp b/tools/all.gyp index 92ff4cc10..d49a14370 100644 --- a/tools/all.gyp +++ b/tools/all.gyp @@ -9,6 +9,7 @@ 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 1, # static debug + 'Optimization': 0, # /Od, no optimization }, }, }, @@ -17,12 +18,25 @@ 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 0, # static release + 'Optimization': 3, # /Ox, full optimization + 'FavorSizeOrSpeed': 1, # /Ot, favour speed over size + 'InlineFunctionExpansion': 2, # /Ob2, inline anything eligible + 'WholeProgramOptimization': 'true', # /GL, whole program optimization, needed for LTCG + }, + 'VCLinkerTool': { + 'LinkTimeCodeGeneration': 1, # link-time code generation }, }, } }, 'msvs_settings': { 'VCCLCompilerTool': { + 'StringPooling': 'true', # pool string literals + 'DebugInformationFormat': 3, # Generate a PDB + 'AdditionalOptions': [ + '/MP', # compile across multiple CPUs, VC2008 setting + ], + 'MultiProcessorCompilation': 'true', # compile across multiple CPUs, VC2010 setting }, 'VCLibrarianTool': { }, |