qmake: Use QT_ARCH to switch 32/64 bit

Makes it possible to switch the build arch depending on the Qt kit not
the hosts arch.
This commit is contained in:
Christian Balles 2017-04-20 18:47:50 +02:00 committed by Duncan Ogilvie
parent c578629121
commit aa20044766

View File

@ -3,7 +3,7 @@ win32 {
DEFINES += _CRT_SECURE_NO_WARNINGS
INCLUDEPATH += "$$PWD/../iaito_win32/include"
INCLUDEPATH += "$$PWD/../iaito_win32/radare2/include/libr"
!contains(QMAKE_HOST.arch, x86_64) {
!contains(QT_ARCH, x86_64) {
LIBS += -L"$$PWD/../iaito_win32/radare2/lib32"
} else {
LIBS += -L"$$PWD/../iaito_win32/radare2/lib64"