summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-05-12 17:16:51 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-05-23 09:49:46 +0000
commiteda29451e958cb4981c254d48a20125988a04a45 (patch)
treedf6b18a3f5f40e4091dfde278b35297f932941e2 /config.tests
parent11f14a0442883a2446116dc5c91c3e10ef339555 (diff)
Enable -separate-debug-info for mingw toolchains
Having the debug info in separate files is very helpful, especially on memory constrained 32bit systems. When the debug info is compiled into the object files, processes can run out of memory when trying to load them. Change-Id: I1808a32e855d6a62e17e1b734c511b31db5f03f1 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/unix/objcopy/objcopy.pro5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.tests/unix/objcopy/objcopy.pro b/config.tests/unix/objcopy/objcopy.pro
index 3c28b89ef3..3c76ae92ef 100644
--- a/config.tests/unix/objcopy/objcopy.pro
+++ b/config.tests/unix/objcopy/objcopy.pro
@@ -1,4 +1,7 @@
SOURCES = objcopy.cpp
CONFIG -= qt
+TARGET = objcopytest
-QMAKE_POST_LINK += $$QMAKE_OBJCOPY --only-keep-debug objcopy objcopy.debug && $$QMAKE_OBJCOPY --strip-debug objcopy && $$QMAKE_OBJCOPY --add-gnu-debuglink=objcopy.debug objcopy
+load(resolve_target)
+
+QMAKE_POST_LINK += $$QMAKE_OBJCOPY --only-keep-debug $$QMAKE_RESOLVED_TARGET objcopytest.debug && $$QMAKE_OBJCOPY --strip-debug $$QMAKE_RESOLVED_TARGET && $$QMAKE_OBJCOPY --add-gnu-debuglink=objcopytest.debug $$QMAKE_RESOLVED_TARGET