What do you mean? Qt knows because it's reading the QMAKESPEC env variable.