I am looking for a way to distinguish between different target platforms (32 and 64 bit) respectively between the different tools chains used.
I have found this [qt-project.org]
but it does not really help or the discussion is wrong. Using in the .pro file:
message (HOST:$$QMAKE_HOST)
message (HOST:$$QMAKE_HOST.arch)
message (TARGET:$$QMAKE_TARGET)
message (TARGET:$$QMAKE_TARGET.arch)
Following output is generated:
Project MESSAGE: HOST:
Project MESSAGE: HOST:x86
Project MESSAGE: TARGET:
Project MESSAGE: TARGET:
This is on win7 64 bit with a MinGW 32 bit tool chain.
On another installation it shows:
Project MESSAGE: HOST:
Project MESSAGE: HOST:x86_64
Project MESSAGE: TARGET:
Project MESSAGE: TARGET:
This is on win7 64 bit with MinGW dual target 32/64 bit tool chain.
Anyone knows more details?
Or how can I detect the tool chain and the target OS properly?
↧