| 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 Chromium builds with checks enabled. | 6 Release settings for Chromium builds with checks enabled. |
| 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 env.Append( | 13 env.Append( |
| 14 CPPDEFINES = [ | 14 CPPDEFINES = [ |
| 15 '_DEBUG', ' | 15 '_DEBUG', ' |
| 16 ('_HAS_ITERATOR_DEBUGGING', '0'), | 16 ('_HAS_ITERATOR_DEBUGGING', '0'), |
| 17 ('_SECURE_SCL', '0'), | 17 ('_SECURE_SCL', '0'), |
| 18 ], | 18 ], |
| 19 ) | 19 ) |
| 20 | 20 |
| 21 if env.Bit('windows'): | 21 if env.Bit('windows'): |
| 22 env.Replace( |
| 23 CHROMIUM_LINK_OPT_FLAGS = [ |
| 24 '/OPT:REF', # VCLinkerTool.OptimizeReferences="2" |
| 25 '/OPT:NOICF', # VCLinkerTool.EnableCOMDATFolding="2" |
| 26 '/OPT:NOWIN98', # VCLinkerTool.OptimizeForWindows98="1" |
| 27 ], |
| 28 ), |
| 22 env.Append( | 29 env.Append( |
| 23 CCFLAGS = [ | 30 CCFLAGS = [ |
| 24 '/Oy-', | 31 '/Oy-', |
| 25 '/MTd', # VCCLCompilerTool.RuntimeLibrary="1" | 32 '/MTd', # VCCLCompilerTool.RuntimeLibrary="1" |
| 26 ], | 33 ], |
| 27 LINKFLAGS = [ | 34 LINKFLAGS = [ |
| 28 '/INCREMENTAL:NO', # VCLinkerTool.LinkIncremental="1" | 35 '/INCREMENTAL:NO', # VCLinkerTool.LinkIncremental="1" |
| 29 '/OPT:REF', # VCLinkerTool.OptimizeReferences="2" | |
| 30 '/OPT:ICF', # VCLinkerTool.EnableCOMDATFolding="2" | |
| 31 '/OPT:NOWIN98', # VCLinkerTool.OptimizeForWindows98="1" | |
| 32 ], | 36 ], |
| 33 ) | 37 ) |
| OLD | NEW |