Add a new GYP_DEFINE to make _HAS_ITERATOR_DEBUGGING disablable on Windows/Debug
Shouldn't affect anyone unless I enable this flag on the TSan bot. TEST=Tested with a local waterfall Review URL: http://codereview.chromium.org/4688001 git-svn-id: http://src.chromium.org/svn/trunk/src/build@65377 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
47122821f9
Коммит
b63f4a882d
|
@ -434,6 +434,12 @@
|
|||
# See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx
|
||||
'win_debug_InlineFunctionExpansion%': '', # empty = default, 0 = off,
|
||||
'win_release_InlineFunctionExpansion%': '2', # 1 = only __inline, 2 = max
|
||||
# VS inserts quite a lot of extra checks to algorithms like
|
||||
# std::partial_sort in Debug build which make them O(N^2)
|
||||
# instead of O(N*logN). This is particularly slow under memory
|
||||
# tools like ThreadSanitizer so we want it to be disablable.
|
||||
# See http://msdn.microsoft.com/en-us/library/aa985982(v=VS.80).aspx
|
||||
'win_debug_disable_iterator_debugging%': '0',
|
||||
|
||||
'release_extra_cflags%': '',
|
||||
'debug_extra_cflags%': '',
|
||||
|
@ -722,6 +728,9 @@
|
|||
'InlineFunctionExpansion':
|
||||
'<(win_debug_InlineFunctionExpansion)',
|
||||
}],
|
||||
['win_debug_disable_iterator_debugging==1', {
|
||||
'PreprocessorDefinitions': ['_HAS_ITERATOR_DEBUGGING=0'],
|
||||
}],
|
||||
],
|
||||
},
|
||||
'VCLinkerTool': {
|
||||
|
|
Загрузка…
Ссылка в новой задаче