Enable CFG, EHCont, and CET for Windows builds
This commit is contained in:
parent
0c8354336b
commit
f9bb45579b
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue