Enable CFG, EHCont, and CET for Windows builds

This commit is contained in:
Cameron Gutman
2025-08-24 20:42:37 -05:00
parent 0c8354336b
commit f9bb45579b

View File

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