Browse Source

Add windows-clang support (#15115)

This allows to build with clang targeting x86_64-w64-windows-gnu.
adaptive-webui-19844
Biswapriyo Nath 3 years ago committed by GitHub
parent
commit
f6eb29d800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      winconf.pri

4
winconf.pri

@ -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

Loading…
Cancel
Save