File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 303
303
"webengine-sanitizer" : {
304
304
"label" : " sanitizer support" ,
305
305
"type" : " isSanitizerSupported"
306
+ },
307
+ "webengine-win-compiler64" : {
308
+ "label" : " 64bit compiler" ,
309
+ "type" : " isWindowsHostCompiler64"
306
310
}
307
311
},
308
312
609
613
"autoDetect" : " config.sanitizer && tests.webengine-sanitizer" ,
610
614
"condition" : " config.sanitizer" ,
611
615
"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" ]
612
622
}
613
623
},
614
624
642
652
"type" : " warning" ,
643
653
"condition" : " config.unix && !features.webengine-host-pkg-config" ,
644
654
"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."
645
660
}
646
661
],
647
662
Original file line number Diff line number Diff line change @@ -260,3 +260,12 @@ defineReplace(qtConfFunc_isTestsInBuildParts) {
260
260
contains (QT_BUILD_PARTS, tests ): return(true)
261
261
return(false)
262
262
}
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
+
Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ defineTest(runConfigure) {
37
37
return(false)
38
38
}
39
39
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
+
40
45
!qtConfig(webengine-gperf) {
41
46
skipBuild("Required gperf could not be found.")
42
47
return(false)
You can’t perform that action at this time.
0 commit comments