From a8bb88572d2f0c39d3841d082cd956593cfe403e Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Thu, 7 Nov 2019 20:06:41 +0300 Subject: GCC: avoid duplicating objects in linker command line Long command lines are especially a problem when building statically in MXE. This commit tries to replicate the logic employed by qmake, where before adding a new object to the command line, all of its previous appearences get removed. Fixes: QBS-1273 Change-Id: I51c843c4a7cfc170ed4fab30deae6c4229690dd0 Reviewed-by: Christian Kandeler --- doc/reference/modules/cpp-module.qdoc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/reference') diff --git a/doc/reference/modules/cpp-module.qdoc b/doc/reference/modules/cpp-module.qdoc index 2f7f06698..64a7c071f 100644 --- a/doc/reference/modules/cpp-module.qdoc +++ b/doc/reference/modules/cpp-module.qdoc @@ -1699,3 +1699,13 @@ \defaultvalue \c{false} */ + +/*! + \qmlproperty bool cpp::removeDuplicateLibraries + \since Qbs 1.16 + + Whether the list of the objects and libraries is reduced to a + list of unique values before being passed to the linker. + + \defaultvalue \c{true} +*/ -- cgit v1.2.3