8 lines
406 B
Prolog
8 lines
406 B
Prolog
|
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
|
||
|
# 'false' as second argument to system() prevents qmake from stripping newlines
|
||
|
COMPILER_ARCH = $$system($$COMMAND, false)
|
||
|
# Message back to configure so that it can set QT_ARCH and QT_HOST_ARCH
|
||
|
message($$COMPILER_ARCH)
|