2016-02-10 12:05:26 +00:00
|
|
|
#
|
2016-06-16 06:21:03 +00:00
|
|
|
# qmake configuration for win32-clang-msvc
|
2016-02-10 12:05:26 +00:00
|
|
|
#
|
|
|
|
# Notice: this uses the clang-cl wrapper
|
|
|
|
#
|
|
|
|
|
|
|
|
include(../common/msvc-desktop.conf)
|
|
|
|
|
2019-01-15 13:16:19 +00:00
|
|
|
# clang-cl does not use anything above SSE2 without extra arguments
|
|
|
|
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_F16C = -mf16c
|
|
|
|
QMAKE_CFLAGS_RDRND = -mrdrnd
|
|
|
|
QMAKE_CFLAGS_AVX512F = -mavx512f
|
|
|
|
QMAKE_CFLAGS_AVX512ER = -mavx512er
|
|
|
|
QMAKE_CFLAGS_AVX512CD = -mavx512cd
|
|
|
|
QMAKE_CFLAGS_AVX512PF = -mavx512pf
|
|
|
|
QMAKE_CFLAGS_AVX512DQ = -mavx512dq
|
|
|
|
QMAKE_CFLAGS_AVX512BW = -mavx512bw
|
|
|
|
QMAKE_CFLAGS_AVX512VL = -mavx512vl
|
|
|
|
QMAKE_CFLAGS_AVX512IFMA = -mavx512ifma
|
|
|
|
QMAKE_CFLAGS_AVX512VBMI = -mavx512vbmi
|
|
|
|
QMAKE_CFLAGS_AESNI = -maes
|
|
|
|
QMAKE_CFLAGS_SHANI = -msha
|
|
|
|
|
2016-02-10 12:05:26 +00:00
|
|
|
QMAKE_COMPILER += clang_cl llvm
|
|
|
|
|
|
|
|
QMAKE_CC = clang-cl
|
|
|
|
QMAKE_CXX = $$QMAKE_CC
|
|
|
|
|
2016-11-16 13:10:29 +00:00
|
|
|
QMAKE_CFLAGS += -Wno-microsoft-enum-value
|
2018-02-22 18:28:37 +00:00
|
|
|
|
|
|
|
QMAKE_CXXFLAGS += -Wno-microsoft-enum-value
|
2016-02-10 12:05:26 +00:00
|
|
|
|
2018-12-10 16:52:36 +00:00
|
|
|
QMAKE_LINK = lld-link
|
|
|
|
QMAKE_LIB = llvm-lib /NOLOGO
|
|
|
|
|
|
|
|
QMAKE_CFLAGS_LTCG = -flto
|
|
|
|
QMAKE_CXXFLAGS_LTCG = $$QMAKE_CFLAGS_LTCG
|
|
|
|
# Leave QMAKE_LFLAGS_LTCG empty because lld-link doesn't need any additional parameters
|
|
|
|
QMAKE_LFLAGS_LTCG =
|
|
|
|
|
2016-02-10 12:05:26 +00:00
|
|
|
# Precompiled headers are not supported yet by clang
|
|
|
|
CONFIG -= precompile_header
|
|
|
|
|
|
|
|
load(qt_config)
|