diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2018-12-20 15:12:19 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-01-07 13:31:51 +0000 |
commit | d8a5edfb8c5bb0556d33d8eac512be41472585fb (patch) | |
tree | ffab1b0caab481bdc30a427d11a382fafba513de /share/qbs | |
parent | e5ba24302d9e1d55c544c8616f837af9cfbbf710 (diff) |
GCC: Make it possible to force the linker variant
...via cpp.linkerVariant.
[ChangeLog] Added new cpp property linkerVariant to force use of gold,
bfd or lld.
Task-number: QBS-1421
Change-Id: I98f9d2581515ac8e9c984a2f8d70f4a7a3ab230b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'share/qbs')
-rw-r--r-- | share/qbs/modules/cpp/GenericGCC.qbs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/GenericGCC.qbs b/share/qbs/modules/cpp/GenericGCC.qbs index 972555ed7..60288e76a 100644 --- a/share/qbs/modules/cpp/GenericGCC.qbs +++ b/share/qbs/modules/cpp/GenericGCC.qbs @@ -173,6 +173,18 @@ CppModule { + "such as \"--no-undefined\", then you should set this property to \"strict\"." } + property string linkerVariant + PropertyOptions { + name: "linkerVariant" + allowedValues: ["bfd", "gold", "lld"] + description: "Allows to specify the linker variant. Maps to gcc's and clang's -fuse-ld " + + "option." + } + Properties { + condition: linkerVariant + driverLinkerFlags: "-fuse-ld=" + linkerVariant + } + property string toolchainPathPrefix: Gcc.pathPrefix(toolchainInstallPath, toolchainPrefix) property string binutilsPathPrefix: Gcc.pathPrefix(binutilsPath, toolchainPrefix) |