2011-04-27 10:05:43 +00:00
|
|
|
#
|
|
|
|
# Qmake configuration for Clang on Linux and Mac
|
|
|
|
#
|
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_COMPILER = gcc clang llvm # clang pretends to be gcc
|
2012-09-13 20:17:33 +00:00
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_CC = clang
|
|
|
|
QMAKE_CXX = clang++
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_LINK = $$QMAKE_CXX
|
|
|
|
QMAKE_LINK_SHLIB = $$QMAKE_CXX
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
CONFIG += clang_pch_style
|
|
|
|
QMAKE_PCH_OUTPUT_EXT = .pch
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
QMAKE_CFLAGS_PRECOMPILE = -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
|
|
|
|
QMAKE_CFLAGS_USE_PRECOMPILE = -Xclang -include-pch -Xclang ${QMAKE_PCH_OUTPUT}
|
|
|
|
QMAKE_CXXFLAGS_PRECOMPILE = -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
|
|
|
|
QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
|
2012-05-29 05:10:09 +00:00
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_CXXFLAGS_CXX11 = -std=c++11
|
|
|
|
QMAKE_LFLAGS_CXX11 =
|
2012-05-31 12:58:53 +00:00
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_CFLAGS_SSE2 += -msse2
|
|
|
|
QMAKE_CFLAGS_SSE3 += -msse3
|
|
|
|
QMAKE_CFLAGS_SSSE3 += -mssse3
|
|
|
|
QMAKE_CFLAGS_SSE4_1 += -msse4.1
|
|
|
|
QMAKE_CFLAGS_SSE4_2 += -msse4.2
|
|
|
|
QMAKE_CFLAGS_AVX += -mavx
|
|
|
|
QMAKE_CFLAGS_AVX2 += -mavx2
|
|
|
|
QMAKE_CFLAGS_IWMMXT += -mcpu=iwmmxt
|
|
|
|
QMAKE_CFLAGS_NEON += -mfpu=neon
|