mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-15 18:21:42 +00:00
Enable CFG, EHCont, and CET for Windows builds
This commit is contained in:
@@ -9,6 +9,17 @@ CONFIG(release, debug|release) {
|
||||
DEFINES += NDEBUG
|
||||
}
|
||||
|
||||
# Enable CFG, EHCont, and CET
|
||||
*-msvc {
|
||||
QMAKE_CFLAGS += -guard:cf -guard:ehcont
|
||||
QMAKE_CXXFLAGS += -guard:cf -guard:ehcont
|
||||
QMAKE_LFLAGS += -guard:cf -guard:ehcont
|
||||
|
||||
contains(QT_ARCH, x86_64) {
|
||||
QMAKE_LFLAGS += -cetcompat
|
||||
}
|
||||
}
|
||||
|
||||
# Enable ASan for Linux or macOS
|
||||
#CONFIG += sanitizer sanitize_address
|
||||
|
||||
|
||||
Reference in New Issue
Block a user