| OLD | NEW |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 __doc__ = """ | 5 __doc__ = """ |
| 6 Release settings for official Chromium builds. | 6 Release settings for official Chromium builds. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 Import("env") | 9 Import("env") |
| 10 | 10 |
| 11 env.ApplySConscript(['release_defaults.scons']) | 11 env.ApplySConscript(['release_defaults.scons']) |
| 12 | 12 |
| 13 if env.Bit('windows'): | 13 if env.Bit('windows'): |
| 14 env.Replace( |
| 15 CHROMIUM_CC_OPT_FLAGS = [ |
| 16 '/Ox', # VCCLCompilerTool.Optimization="3" |
| 17 ], |
| 18 ), |
| 14 env.Append( | 19 env.Append( |
| 15 ARFLAGS = [ | 20 ARFLAGS = [ |
| 16 '/ltcg', | 21 '/ltcg', |
| 17 ], | 22 ], |
| 18 CCFLAGS = [ | 23 CCFLAGS = [ |
| 19 '/Ox', # VCCLCompilerTool.Optimization="3" | |
| 20 '/Ob2', # VCCLCompilerTool.InlineFunctionExpansion="2" | 24 '/Ob2', # VCCLCompilerTool.InlineFunctionExpansion="2" |
| 21 '/Oi', # VCCLCompilerTool.EnableIntrinsicFunctions="true" | 25 '/Oi', # VCCLCompilerTool.EnableIntrinsicFunctions="true" |
| 22 '/Os', # VCCLCompilerTool.FavorSizeOrSpeed="2" | 26 '/Os', # VCCLCompilerTool.FavorSizeOrSpeed="2" |
| 23 '/Ox', # VCCLCompilerTool.OmitFramePointers="true" | 27 '/Ox', # VCCLCompilerTool.OmitFramePointers="true" |
| 24 '/GT', # VCCLCompilerTool.EnableFiberSafeOptimizations="true" | 28 '/GT', # VCCLCompilerTool.EnableFiberSafeOptimizations="true" |
| 25 '/GL', # VCCLCompilerTool.WholeProgramOptimization="true" | 29 '/GL', # VCCLCompilerTool.WholeProgramOptimization="true" |
| 26 ] | 30 ] |
| 27 LINKFLAGS = [ | 31 LINKFLAGS = [ |
| 28 '/LTCG', # VCLinkerTool.LinkTimeCodeGeneration="1" | 32 '/LTCG', # VCLinkerTool.LinkTimeCodeGeneration="1" |
| 29 ], | 33 ], |
| 30 ) | 34 ) |
| OLD | NEW |