diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 17:06:49 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-12-20 13:50:47 +0100 |
commit | 0bfe86c1a2dea0231e8bc3fb2b225b223754df9e (patch) | |
tree | e1774dab7e58f63e3ebb106a5cc7ead3f384a4fd | |
parent | 7b3882b03778e8d76d716823321d8b99a82714a5 (diff) | |
download | qtwebengine-chromium-0bfe86c1a2dea0231e8bc3fb2b225b223754df9e.tar.gz |
Fix GN building for non Google
Change-Id: I155b86c54755080e4dc33e2efa9447fbf38ace7d
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rwxr-xr-x | gn/build/gen.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gn/build/gen.py b/gn/build/gen.py index 82cca32b313..37ea3ad4d92 100755 --- a/gn/build/gen.py +++ b/gn/build/gen.py @@ -87,8 +87,8 @@ def main(argv): help='Enable the use of LTO') parser.add_option('--use-icf', action='store_true', help='Enable the use of Identical Code Folding') - parser.add_option('--no-sysroot', action='store_true', - help='(Linux only) Do not build with the Debian sysroot.') + parser.add_option('--sysroot', action='store_true', + help='(Linux only) Build with a Debian sysroot.') parser.add_option('--no-last-commit-position', action='store_true', help='Do not generate last_commit_position.h.') parser.add_option('--out-path', @@ -105,7 +105,7 @@ def main(argv): host = platform linux_sysroot = None - if platform.is_linux() and not options.no_sysroot: + if platform.is_linux() and options.sysroot: linux_sysroot = UpdateLinuxSysroot() out_dir = options.out_path or os.path.join(REPO_ROOT, 'out') @@ -310,8 +310,8 @@ def WriteGNNinja(path, platform, host, options, linux_sysroot): ld = os.environ.get('LD', 'g++') ar = os.environ.get('AR', 'ar -X64') else: - cc = os.environ.get('CC', 'clang') - cxx = os.environ.get('CXX', 'clang++') + cc = os.environ.get('CC', 'cc') + cxx = os.environ.get('CXX', 'c++') ld = cxx ar = os.environ.get('AR', 'ar') |