| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 __doc__ = """ | |
| 6 Release settings for official Chromium builds. | |
| 7 """ | |
| 8 | |
| 9 Import("env") | |
| 10 | |
| 11 env.ApplySConscript(['release_defaults.scons']) | |
| 12 | |
| 13 if env.Bit('windows'): | |
| 14 env.Replace( | |
| 15 CHROMIUM_CC_OPT_FLAGS = [ | |
| 16 '/Ox', # VCCLCompilerTool.Optimization="3" | |
| 17 ], | |
| 18 ), | |
| 19 env.Append( | |
| 20 ARFLAGS = [ | |
| 21 '/ltcg', | |
| 22 ], | |
| 23 CCFLAGS = [ | |
| 24 '/Ob2', # VCCLCompilerTool.InlineFunctionExpansion="2" | |
| 25 '/Oi', # VCCLCompilerTool.EnableIntrinsicFunctions="true" | |
| 26 '/Os', # VCCLCompilerTool.FavorSizeOrSpeed="2" | |
| 27 '/Ox', # VCCLCompilerTool.OmitFramePointers="true" | |
| 28 '/GT', # VCCLCompilerTool.EnableFiberSafeOptimizations="true" | |
| 29 '/GL', # VCCLCompilerTool.WholeProgramOptimization="true" | |
| 30 ], | |
| 31 CPPDEFINES = [ | |
| 32 'OFFICIAL_BUILD', | |
| 33 ], | |
| 34 LINKFLAGS = [ | |
| 35 '/LTCG', # VCLinkerTool.LinkTimeCodeGeneration="1" | |
| 36 ], | |
| 37 ) | |
| OLD | NEW |