summaryrefslogtreecommitdiffstats
path: root/tools/buildscripts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/buildscripts')
-rwxr-xr-xtools/buildscripts/gyp_qtwebengine8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/buildscripts/gyp_qtwebengine b/tools/buildscripts/gyp_qtwebengine
index 12a6427d8..12eae72c6 100755
--- a/tools/buildscripts/gyp_qtwebengine
+++ b/tools/buildscripts/gyp_qtwebengine
@@ -96,10 +96,14 @@ if __name__ == '__main__':
args.extend(['-I' + i for i in additional_include_files(args)])
+ # We always have to disable tcmalloc.
+ # Allocating with tcmalloc in chromium code and freeing without
+ # tcmalloc outside of chromium code would cause erratic behavior.
+ args.extend(['-D', 'linux_use_tcmalloc=0'])
+
# On Mac we want to build in x64 mode. And we want to use libc++.
- # Even though we are not on linux, it seems we specifically have to disable linux_use_tcmalloc.
if sys.platform in ('darwin',) and not 'GYP_CROSSCOMPILE' in os.environ:
- args.extend(['-D', 'host_arch=x64', '-D', 'use_libcpp=1', '-D', 'linux_use_tcmalloc=0'])
+ args.extend(['-D', 'host_arch=x64', '-D', 'use_libcpp=1'])
# There shouldn't be a circular dependency relationship between .gyp files,
# but in Chromium's .gyp files, on non-Mac platforms, circular relationships