Skip to content

Commit dd7c3f9

Browse files
author
Michal Klocek
committed
Check if windows has 64 bit compiler
Task-number: QTBUG-68462 Task-number: QTBUG-70728 Change-Id: I4314bce427555504cb49de93af45c910de554479 Reviewed-by: Allan Sandfeld Jensen <[email protected]>
1 parent c569153 commit dd7c3f9

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

configure.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@
303303
"webengine-sanitizer": {
304304
"label" : "sanitizer support",
305305
"type": "isSanitizerSupported"
306+
},
307+
"webengine-win-compiler64": {
308+
"label": "64bit compiler",
309+
"type": "isWindowsHostCompiler64"
306310
}
307311
},
308312

@@ -609,6 +613,12 @@
609613
"autoDetect": "config.sanitizer && tests.webengine-sanitizer",
610614
"condition": "config.sanitizer",
611615
"output": [ "privateFeature" ]
616+
},
617+
"webengine-win-compiler64": {
618+
"label": "64bit compiler",
619+
"condition": "config.win32 && tests.webengine-win-compiler64",
620+
"type": "isWindowsHostCompiler64",
621+
"output": [ "privateFeature" ]
612622
}
613623
},
614624

@@ -642,6 +652,11 @@
642652
"type": "warning",
643653
"condition": "config.unix && !features.webengine-host-pkg-config",
644654
"message": "host pkg-config not found"
655+
},
656+
{
657+
"type": "warning",
658+
"condition": "config.win32 && !features.webengine-win-compiler64",
659+
"message": "64-bit cross-building or native toolchain is required to build QtWebEngine."
645660
}
646661
],
647662

configure.pri

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,12 @@ defineReplace(qtConfFunc_isTestsInBuildParts) {
260260
contains(QT_BUILD_PARTS, tests): return(true)
261261
return(false)
262262
}
263+
264+
defineTest(qtConfTest_isWindowsHostCompiler64) {
265+
win_host_arch = $$(VSCMD_ARG_HOST_ARCH)
266+
isEmpty(win_host_arch): return(true)
267+
contains(win_host_arch,"x64"): return(true)
268+
qtLog("Required 64-bit cross-building or native toolchain was not detected.")
269+
return(false)
270+
}
271+

mkspecs/features/configure.prf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ defineTest(runConfigure) {
3737
return(false)
3838
}
3939

40+
win32:!qtConfig(webengine-win-compiler64) {
41+
skipBuild("Required 64-bit cross-building or native toolchain could not be found.")
42+
return(false)
43+
}
44+
4045
!qtConfig(webengine-gperf) {
4146
skipBuild("Required gperf could not be found.")
4247
return(false)

0 commit comments

Comments
 (0)