diff --git a/cmake/cef_variables.cmake.in b/cmake/cef_variables.cmake.in index 8e7c18544..2dced947c 100644 --- a/cmake/cef_variables.cmake.in +++ b/cmake/cef_variables.cmake.in @@ -491,6 +491,9 @@ if(OS_WINDOWS) PSAPI_VERSION=1 # Required by cef_sandbox.lib CEF_USE_SANDBOX # Used by apps to test if the sandbox is enabled ) + list(APPEND CEF_COMPILER_DEFINES_DEBUG + _HAS_ITERATOR_DEBUGGING=0 # Disable iterator debugging + ) # Libraries required by cef_sandbox.lib. set(CEF_SANDBOX_STANDARD_LIBS diff --git a/tools/gn_args.py b/tools/gn_args.py index 7d07f4569..2b277cdf5 100644 --- a/tools/gn_args.py +++ b/tools/gn_args.py @@ -480,10 +480,6 @@ def GetConfigArgsSandbox(platform, args, is_debug, cpu): 'is_cef_sandbox_build': True, } - if is_debug: - # Enable iterator debugging (_ITERATOR_DEBUG_LEVEL=2). - add_args['enable_iterator_debugging'] = True - if platform == 'windows': # Avoid Debug build linker errors caused by custom libc++. add_args['use_custom_libcxx'] = False