diff options
Diffstat (limited to 'build/gyp_qtwebengine')
-rwxr-xr-x | build/gyp_qtwebengine | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build/gyp_qtwebengine b/build/gyp_qtwebengine index df5a5d18a..6c3f7c6aa 100755 --- a/build/gyp_qtwebengine +++ b/build/gyp_qtwebengine @@ -81,6 +81,12 @@ def get_output_dir(): if __name__ == '__main__': args = sys.argv[1:] + # On Mac we want to override CXX and CC that is provided with + # the Chromium GYP environment. + if sys.platform.startswith('darwin'): + os.environ['CXX'] = 'clang++' + os.environ['CC'] = 'clang' + gyp_helper.apply_chromium_gyp_env() # This could give false positives since it doesn't actually do real option @@ -96,6 +102,10 @@ if __name__ == '__main__': args.extend(['-I' + i for i in additional_include_files(args)]) + # On Mac we want to build in x64 mode. And we want to use libc++. + if sys.platform in ('darwin',): + 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 # currently exist. The check for circular dependencies is currently |