Add windows-clang support (#15115)

This allows to build with clang targeting x86_64-w64-windows-gnu.
This commit is contained in:
Biswapriyo Nath 2021-06-25 09:48:56 +05:30 committed by GitHub
parent f5315d9ba7
commit f6eb29d800
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ else {
DEFINES += NDEBUG DEFINES += NDEBUG
} }
win32-g++* { win32-g++*|win32-clang-g++* {
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
# Make sure binary is not relocatable, otherwise debugging will fail # Make sure binary is not relocatable, otherwise debugging will fail
QMAKE_LFLAGS -= -Wl,--dynamicbase QMAKE_LFLAGS -= -Wl,--dynamicbase
@ -58,7 +58,7 @@ else {
# Stack trace support can be enabled in 'conf.pri' # Stack trace support can be enabled in 'conf.pri'
stacktrace { stacktrace {
win32-g++* { win32-g++*|win32-clang-g++* {
contains(QMAKE_HOST.arch, x86) { contains(QMAKE_HOST.arch, x86) {
# i686 arch requires frame pointer preservation # i686 arch requires frame pointer preservation
QMAKE_CXXFLAGS += -fno-omit-frame-pointer QMAKE_CXXFLAGS += -fno-omit-frame-pointer