| 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( | 14   env.Replace( | 
| 15       CHROMIUM_CC_OPT_FLAGS = [ | 15       CHROMIUM_CC_OPT_FLAGS = [ | 
| 16           '/Ox',    # VCCLCompilerTool.Optimization="3" | 16           '/Ox',    # VCCLCompilerTool.Optimization="3" | 
| 17       ], | 17       ], | 
| 18   ), | 18   ), | 
| 19   env.Append( | 19   env.Append( | 
| 20       ARFLAGS = [ | 20       ARFLAGS = [ | 
| 21           '/ltcg', | 21           '/ltcg', | 
| 22       ], | 22       ], | 
| 23       CCFLAGS = [ | 23       CCFLAGS = [ | 
| 24           '/Ob2',   # VCCLCompilerTool.InlineFunctionExpansion="2" | 24           '/Ob2',   # VCCLCompilerTool.InlineFunctionExpansion="2" | 
| 25           '/Oi',    # VCCLCompilerTool.EnableIntrinsicFunctions="true" | 25           '/Oi',    # VCCLCompilerTool.EnableIntrinsicFunctions="true" | 
| 26           '/Os',    # VCCLCompilerTool.FavorSizeOrSpeed="2" | 26           '/Os',    # VCCLCompilerTool.FavorSizeOrSpeed="2" | 
| 27           '/Ox',    # VCCLCompilerTool.OmitFramePointers="true" | 27           '/Ox',    # VCCLCompilerTool.OmitFramePointers="true" | 
| 28           '/GT',    # VCCLCompilerTool.EnableFiberSafeOptimizations="true" | 28           '/GT',    # VCCLCompilerTool.EnableFiberSafeOptimizations="true" | 
| 29           '/GL',    # VCCLCompilerTool.WholeProgramOptimization="true" | 29           '/GL',    # VCCLCompilerTool.WholeProgramOptimization="true" | 
| 30       ] | 30       ], | 
| 31       LINKFLAGS = [ | 31       LINKFLAGS = [ | 
| 32           '/LTCG',  # VCLinkerTool.LinkTimeCodeGeneration="1" | 32           '/LTCG',  # VCLinkerTool.LinkTimeCodeGeneration="1" | 
| 33       ], | 33       ], | 
| 34   ) | 34   ) | 
| OLD | NEW | 
|---|