diff options
author | Michal Klocek <michal.klocek@qt.io> | 2019-02-21 13:10:32 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2019-02-21 14:57:20 +0000 |
commit | 29a45e8b7f5ddd792eb1e8a0332f68a68b08c2c6 (patch) | |
tree | b70f9e17ec0b667496e5dc3631a39329a14a187c | |
parent | c2a58ec0a99e22b35105c68f51604c0099251e31 (diff) | |
download | qtwebengine-chromium-29a45e8b7f5ddd792eb1e8a0332f68a68b08c2c6.tar.gz |
Fix not working ar on windows
Make ar optional.
Change-Id: Ib457d45ff2855edea4babf39c30fc905a46684cc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rwxr-xr-x | gn/build/gen.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gn/build/gen.py b/gn/build/gen.py index 315bf025931..57f54ef5fa0 100755 --- a/gn/build/gen.py +++ b/gn/build/gen.py @@ -310,7 +310,7 @@ def WriteGenericNinja(path, static_libraries, executables, def WriteGNNinja(path, platform, host, options, linux_sysroot): # QTBUG-64759 - #iif platform.is_msvc(): + #if platform.is_msvc(): # cc = os.environ.get('CC', 'cl.exe') # cxx = os.environ.get('CXX', 'cl.exe') # ld = os.environ.get('LD', 'link.exe') @@ -336,6 +336,12 @@ def WriteGNNinja(path, platform, host, options, linux_sysroot): ld = options.ld ar = options.ar + if not ar: + if platform.is_msvc(): + ar = os.environ.get('AR', 'lib.exe') + else: + ar = os.environ.get('AR', 'ar') + cflags = [] cflags_cc = [] ldflags = [] |