How to check the compiler version in Qt .pro file?

You can use the Platform Scope built in to QMake to set up the build differently depending on platform.

It's based on the mkspec's shipped with Qt and can be found in

[Where Qt's installed]/mkspecs

So in your case I guess it'll look something like this:

linux-arm-gnueabi {
    //ARM stuff here
}

Please note that I have not tested this. I've only read what's in the documentation I have linked to.


If you want to know only type of processor, you can use Q_PROCESSOR_ARM macro.