summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-08-07 17:36:54 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-08-14 16:43:49 +0200
commitfcf96a61db5271473d8eca5e3de4ee406fe57ad0 (patch)
treedbc5689fb9036b6509572d4eccf5026958564d4d /tools
parent65f385bb6ee8b6735d6555a396094577d44a5f82 (diff)
Use the toolchain from PATH on Windows
We don't want to fetch the compiler path from the mkspec on Windows the same way that we do on linux/embedded. Qt usually let the build environment decide the MSVC toolchain, as it is usually done on Windows. This patch also passes the ninja_use_custom_environment_files ninja generator option to make sure that gyp doesn't try to construct the build environment by running the env scripts itself. Change-Id: I6e04471eb994b81a9f1b8b5f149b4dbddbb320a8 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildscripts/gyp_qtwebengine4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/buildscripts/gyp_qtwebengine b/tools/buildscripts/gyp_qtwebengine
index 864506f8a..3cdacd184 100755
--- a/tools/buildscripts/gyp_qtwebengine
+++ b/tools/buildscripts/gyp_qtwebengine
@@ -147,6 +147,10 @@ if __name__ == '__main__':
# Tweak the output location and format (hardcode ninja for now if not set)
args.extend(['--generator-output', os.path.abspath(output_dir)])
args.extend(['-Goutput_dir='+ os.path.abspath(output_dir)])
+
+ # Tell gyp not to try finding cl.exe on Windows, Qt already requires the env to be set prior to the build.
+ args.extend(['-G', 'ninja_use_custom_environment_files'])
+
if not os.environ.get('GYP_GENERATORS'):
args.extend(['--format=ninja'])
if "QTWEBENGINE_GYP_DEBUG" in os.environ: