mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +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
|
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
|
# Enable ASan for Linux or macOS
|
||||||
#CONFIG += sanitizer sanitize_address
|
#CONFIG += sanitizer sanitize_address
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user