qt5base-lts/mkspecs
Yuhang Zhao f27f9e7bd3 MSVC: enable identical COMDAT folding for release builds
According to Microsoft's docs, /OPT:ICF is enabled by the
linker by default unless /OPT:NOICF or /DEBUG is specified.

If we are in RelWithDebInfo mode, /DEBUG is passed to the
linker to generate debug symbols, however, it caused the
identical COMDAT folding be disabled. We now pass /OPT:ICF
to the linker explicitly to prevent this.

[1] https://docs.microsoft.com/en-us/cpp/build/reference/opt-optimizations?view=msvc-160

Change-Id: I02099edb81034ace7bb19f1164d57829e3979a5f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2020-11-12 03:51:04 +08:00
..
aix-g++
aix-g++-64
android-clang Qmake: Share QMAKE_LINK_OBJECT_SCRIPT definition 2020-07-06 16:44:11 +03:00
common MSVC: enable identical COMDAT folding for release builds 2020-11-12 03:51:04 +08:00
cygwin-g++
darwin-g++
devices Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
dummy
features resources_function.prf: Discard external path prefixes 2020-11-10 16:55:07 +01:00
freebsd-clang
freebsd-g++
haiku-g++
hpuxi-g++-64
hurd-g++
integrity-armv7
integrity-armv7-imx6
integrity-armv8-rcar
integrity-x86
linux-aarch64-gnu-g++
linux-arm-gnueabi-g++
linux-clang Remove checks for glibc < 2 from qplatformdefs.h files 2020-04-23 06:41:32 +02:00
linux-clang-32
linux-clang-libc++
linux-clang-libc++-32
linux-g++ Remove checks for glibc < 2 from qplatformdefs.h files 2020-04-23 06:41:32 +02:00
linux-g++-32
linux-g++-64
linux-icc qmake: Stop using -isystem flag 2020-06-06 09:53:59 +00:00
linux-icc-32
linux-icc-64
linux-icc-k1om
linux-llvm Remove checks for glibc < 2 from qplatformdefs.h files 2020-04-23 06:41:32 +02:00
linux-lsb-g++ Remove checks for glibc < 2 from qplatformdefs.h files 2020-04-23 06:41:32 +02:00
lynxos-g++ Remove checks for glibc < 2 from qplatformdefs.h files 2020-04-23 06:41:32 +02:00
macx-clang Remove -qt-xcb, -system-xcb from README and comments 2020-05-19 06:42:35 +00:00
macx-g++
macx-icc
macx-ios-clang iOS: Add a variable to customize where the launch image is taken from 2020-07-22 00:42:36 +02:00
macx-tvos-clang Update supported platforms and build requirements for Apple platforms 2019-11-05 19:49:14 +01:00
macx-watchos-clang Update supported platforms and build requirements for Apple platforms 2019-11-05 19:49:14 +01:00
macx-xcode Xcode: Disable GPU frame capture and Metal API validation by default 2019-12-18 19:16:09 +01:00
modules
netbsd-g++
openbsd-g++
qnx-aarch64le-qcc
qnx-armle-v7-qcc
qnx-x86-64-qcc
qnx-x86-qcc
solaris-cc
solaris-cc-64
solaris-cc-64-stlport
solaris-cc-stlport
solaris-g++
solaris-g++-64
unsupported
wasm-emscripten wasm: add more debugging information 2020-05-29 11:56:36 +10:00
win32-arm64-msvc rename win32-arm64-msvc2017 to win32-arm64-msvc 2020-10-09 08:06:29 +02:00
win32-clang-g++
win32-clang-msvc QRandom: add support for RDSEED 2019-10-09 07:31:28 -07:00
win32-g++ qmake: Do not pass -mthreads to Clang 2020-08-28 12:58:04 +03:00
win32-icc Add new AVX512 extensions found in Intel CLX, ICL and ICX processors 2020-02-03 11:31:49 -07:00
win32-icc-k1om
win32-msvc