mirror of https://github.com/qt/qtbase.git
Fix target ABI configure detection
Amend commit e6bf237669
to correctly
cache the abi in config.cache and set QT_BUILDABI to the correct target
ABI when cross-compiling.
Task-number: QTBUG-60441
Change-Id: I4ebfce9d6266be2a3225034fbf3aff08e7fdc5d5
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
c12b96daf2
commit
c0013bfd33
|
@ -278,7 +278,7 @@ defineTest(qtConfTest_architecture) {
|
|||
export($${1}.buildabi)
|
||||
qtLog("Detected architecture: $$eval($${1}.arch) ($$eval($${1}.subarch))")
|
||||
|
||||
$${1}.cache += arch subarch
|
||||
$${1}.cache += arch subarch buildabi
|
||||
export($${1}.cache)
|
||||
return(true)
|
||||
}
|
||||
|
@ -893,11 +893,12 @@ defineTest(qtConfOutput_architecture) {
|
|||
publicPro = \
|
||||
"host_build {" \
|
||||
" QT_ARCH = $$host_arch" \
|
||||
" QT_BUILDABI = $$host_buildabi" \
|
||||
" QT_TARGET_ARCH = $$arch" \
|
||||
" QT_TARGET_BUILDABI = $$buildabi" \
|
||||
"} else {" \
|
||||
" QT_ARCH = $$arch" \
|
||||
" QT_BUILDABI = $$host_buildabi" \
|
||||
" QT_BUILDABI = $$buildabi" \
|
||||
"}"
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue