mirror of
https://github.com/c0re100/qBittorrent-Enhanced-Edition.git
synced 2025-01-08 11:57:51 +08:00
Add windows-clang support (#15115)
This allows to build with clang targeting x86_64-w64-windows-gnu.
This commit is contained in:
parent
f5315d9ba7
commit
f6eb29d800
@ -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…
Reference in New Issue
Block a user