7e85e7ced7
This adds the functionality to build Qt with clang under Windows against the Microsoft Visual Studio 2015 runtime. In order to replicate this, a Clang 3.8 build with Visual Studio 2015 Update 1 is needed. Adds compiler detection to Qt to distinguish correctly the clang compiler and Windows with Visual Studio. Clang has some built-in numeric functions, there is no need to use the Microsoft versions, which also conflict here. Task-number: QTBUG-50804 Change-Id: Ia4b267a298310ac7d73edf473b12792991249d8a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
25 lines
605 B
Plaintext
25 lines
605 B
Plaintext
#
|
|
# qmake configuration for win32-clang-msvc2015
|
|
|
|
#
|
|
# Written for Clang 3.8 with Microsoft Visual C++ 2015 Update 1
|
|
# Notice: this uses the clang-cl wrapper
|
|
#
|
|
|
|
MSC_VER = 1900
|
|
MSVC_VER = 14.0
|
|
include(../common/msvc-desktop.conf)
|
|
|
|
QMAKE_COMPILER += clang_cl llvm
|
|
|
|
QMAKE_CC = clang-cl
|
|
QMAKE_CXX = $$QMAKE_CC
|
|
|
|
QMAKE_CFLAGS += -fms-compatibility-version=19.00.23506 -Wno-microsoft-enum-value
|
|
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
|
|
|
|
# Precompiled headers are not supported yet by clang
|
|
CONFIG -= precompile_header
|
|
|
|
load(qt_config)
|