Commit e8fe4c67 authored by Martin Storsjö's avatar Martin Storsjö

contrib: qt: Use the win32-clang-g++ mkspec when building with for windows with clang

Check $(CC) --version to see if it turns out to be clang.
parent 0a09b3b6
......@@ -38,8 +38,12 @@ ifdef HAVE_MACOSX
QT_PLATFORM := -platform darwin-g++
endif
ifdef HAVE_WIN32
ifeq ($(findstring clang, $(shell $(CC) --version)),)
QT_SPEC := win32-g++
QT_PLATFORM := -xplatform win32-g++ -device-option CROSS_COMPILE=$(HOST)-
else
QT_SPEC := win32-clang-g++
endif
QT_PLATFORM := -xplatform $(QT_SPEC) -device-option CROSS_COMPILE=$(HOST)-
endif
QT_CONFIG := -static -opensource -confirm-license -no-pkg-config \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment