summaryrefslogtreecommitdiffstats
path: root/config.tests/arch/arch.pro
blob: ea85a52b9764526f8b6a1733f9a6e73b67ee9a28 (plain)
1
2
3
4
5
6
7
CONFIG -= qt debug_and_release
# Detect target by preprocessing a file that uses Q_PROCESSOR_* macros from qprocessordetection.h
COMMAND = $$QMAKE_CXX $$QMAKE_CXXFLAGS -E $$PWD/arch.cpp
# system function converts newline in output into spaces
COMPILER_ARCH = $$system($$COMMAND)
# Message back to configure so that it can set QT_ARCH and QT_HOST_ARCH
message($$COMPILER_ARCH)