diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-05-17 11:50:31 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-06-07 22:17:20 +0000 |
commit | 6eae98639730ab1ad1611f1ea61bcaad2fe0f69a (patch) | |
tree | be6c5b3aa1c7e80687b8e23b6f82ad50a5cd4544 /src/core/api | |
parent | e16f177e093b40d5146047f3f27e8442ec20be10 (diff) |
Use MSVC's /WHOLEARCHIVE linker flag
The /WHOLEARCHIVE option was introduced in Visual Studio 2015 Update 2.
Since we support no older MSVC version we can unconditionally use this
option and remove our hack that simulates whole-archive by writing
object file names into a linker reponse file.
Change-Id: I32d2cb556c15f9a8aa2f77f608268e0af7ab6a1d
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/api')
-rw-r--r-- | src/core/api/core_api.pro | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/api/core_api.pro b/src/core/api/core_api.pro index 22c165e2a..d3d47e03a 100644 --- a/src/core/api/core_api.pro +++ b/src/core/api/core_api.pro @@ -53,11 +53,3 @@ SOURCES = \ unix:!isEmpty(QMAKE_LFLAGS_VERSION_SCRIPT):!static { SOURCES += qtbug-60565.cpp } - -msvc { - # Create a list of object files that can be used as response file for the linker. - # This is done to simulate -whole-archive on MSVC. - QMAKE_POST_LINK = \ - "if exist $(DESTDIR_TARGET).objects del $(DESTDIR_TARGET).objects$$escape_expand(\\n\\t)" \ - "for %%a in ($(OBJECTS)) do echo $$shell_quote($$shell_path($$OUT_PWD))\\%%a >> $(DESTDIR_TARGET).objects" -} |