Treat -xplatform or -device-option as being a cross compilation

Task-number: QTBUG-85279
Pick-to: 5.15
Pick-to: 5.12
Change-Id: I623108be2cba1dad28c5b692c2b5836a68144854
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tor Arne Vestbø 2020-07-08 13:28:09 +02:00
parent 17b1c7e6b3
commit 26eb4e63e0

View File

@ -85,6 +85,8 @@ defineTest(qtConfCommandline_coverage) {
# callbacks
defineReplace(qtConfFunc_crossCompile) {
!isEmpty(config.input.xplatform): return(true)
!isEmpty(config.input.device-option): return(true)
!isEmpty(config.input.sysroot): return(true)
spec = $$[QMAKE_SPEC]
!equals(spec, $$[QMAKE_XSPEC]): return(true)