mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-08-26 13:42:37 +00:00
Merge pull request #9102 from Chocobo1/cfg
Turn on Control Flow Guard for MSVC builds
This commit is contained in:
commit
8da5ccee03
@ -61,3 +61,9 @@ DEFINES += BOOST_USE_WINAPI_VERSION=0x0501
|
|||||||
|
|
||||||
# Enable stack trace support
|
# Enable stack trace support
|
||||||
CONFIG += stacktrace
|
CONFIG += stacktrace
|
||||||
|
|
||||||
|
win32-msvc* {
|
||||||
|
QMAKE_CXXFLAGS += "/guard:cf"
|
||||||
|
QMAKE_LFLAGS += "/guard:cf"
|
||||||
|
QMAKE_LFLAGS_RELEASE += "/OPT:REF /OPT:ICF"
|
||||||
|
}
|
||||||
|
@ -39,7 +39,6 @@ win32-g++* {
|
|||||||
else:win32-msvc* {
|
else:win32-msvc* {
|
||||||
CONFIG -= embed_manifest_exe
|
CONFIG -= embed_manifest_exe
|
||||||
QMAKE_LFLAGS += "/MANIFEST:EMBED /MANIFESTINPUT:$$quote($${PWD}/src/qbittorrent.exe.manifest) /STACK:0x800000"
|
QMAKE_LFLAGS += "/MANIFEST:EMBED /MANIFESTINPUT:$$quote($${PWD}/src/qbittorrent.exe.manifest) /STACK:0x800000"
|
||||||
QMAKE_LFLAGS_RELEASE += "/OPT:REF /OPT:ICF"
|
|
||||||
|
|
||||||
RC_FILE = qbittorrent.rc
|
RC_FILE = qbittorrent.rc
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user