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