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
|
2019-03-18 09:11:15 +00:00
|
|
|
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
|
2019-01-15 13:16:19 +00:00
|
|
|
QMAKE_CFLAGS_AVX512IFMA = -mavx512ifma
|
|
|
|
QMAKE_CFLAGS_AVX512VBMI = -mavx512vbmi
|
2019-03-18 09:11:15 +00:00
|
|
|
QMAKE_CFLAGS_AESNI = -maes
|
|
|
|
QMAKE_CFLAGS_SHANI = -msha
|
2019-01-15 13:16:19 +00:00
|
|
|
|
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
|
|
|
|
|
2019-03-18 09:17:22 +00:00
|
|
|
QMAKE_CFLAGS_LTCG = -flto=thin
|
2018-12-10 16:52:36 +00:00
|
|
|
QMAKE_CXXFLAGS_LTCG = $$QMAKE_CFLAGS_LTCG
|
2019-03-18 09:17:22 +00:00
|
|
|
QMAKE_CFLAGS_LTCG_FATOBJECTS = -flto
|
|
|
|
QMAKE_CXXFLAGS_LTCG_FATOBJECTS = $$QMAKE_CFLAGS_LTCG_FATOBJECTS
|
2018-12-10 16:52:36 +00:00
|
|
|
# Leave QMAKE_LFLAGS_LTCG empty because lld-link doesn't need any additional parameters
|
|
|
|
QMAKE_LFLAGS_LTCG =
|
|
|
|
|
2019-04-04 15:08:53 +00:00
|
|
|
QMAKE_CFLAGS_OPTIMIZE_SIZE = /clang:-Oz
|
|
|
|
QMAKE_CFLAGS_OPTIMIZE_FULL = /clang:-O3
|
2019-03-20 12:26:23 +00:00
|
|
|
|
2019-03-20 18:32:07 +00:00
|
|
|
QMAKE_LFLAGS_RELEASE += /OPT:REF,ICF,LBR
|
|
|
|
|
2016-02-10 12:05:26 +00:00
|
|
|
load(qt_config)
|