summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-08 16:00:31 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-08 16:00:31 +0000
commitfac10d135f74af95d0de2b12c2a65833ee9ec1ed (patch)
treee3c5c8bf36491266270772a64f27e88d531d419d /build
parenta70a02d6af0441f7eed5a1c8996a7e505a87aced (diff)
downloadchromium_src-fac10d135f74af95d0de2b12c2a65833ee9ec1ed.zip
chromium_src-fac10d135f74af95d0de2b12c2a65833ee9ec1ed.tar.gz
chromium_src-fac10d135f74af95d0de2b12c2a65833ee9ec1ed.tar.bz2
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: svn://svn.chromium.org/chrome/trunk/src@65377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index ab2d892..97863a9 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -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': {