diff --git a/conf.pri.windows b/conf.pri.windows index ef6edc773..dab9d8cc9 100644 --- a/conf.pri.windows +++ b/conf.pri.windows @@ -61,3 +61,9 @@ DEFINES += BOOST_USE_WINAPI_VERSION=0x0501 # Enable stack trace support CONFIG += stacktrace + +win32-msvc* { + QMAKE_CXXFLAGS += "/guard:cf" + QMAKE_LFLAGS += "/guard:cf" + QMAKE_LFLAGS_RELEASE += "/OPT:REF /OPT:ICF" +} diff --git a/winconf.pri b/winconf.pri index ac5153814..0c700380f 100644 --- a/winconf.pri +++ b/winconf.pri @@ -39,7 +39,6 @@ win32-g++* { else:win32-msvc* { CONFIG -= embed_manifest_exe QMAKE_LFLAGS += "/MANIFEST:EMBED /MANIFESTINPUT:$$quote($${PWD}/src/qbittorrent.exe.manifest) /STACK:0x800000" - QMAKE_LFLAGS_RELEASE += "/OPT:REF /OPT:ICF" RC_FILE = qbittorrent.rc