diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2019-12-12 20:47:27 +0100 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-01-24 09:11:04 +0000 |
commit | 9c282ff7bd13b25118da3e6d7a46e75fe78caf4c (patch) | |
tree | 84bbea00869bd2902e91ffdd464b4ff27db339ce /doc | |
parent | 1e7875f00e406b762065f0ea2fe30836829fdd42 (diff) |
MSVC: Use compiler driver for linking
To be able to use cpp.driverFlags and cpp.driverLinkerFlags with clang-
cl. This patchset makes possible to use clang-cl with "-
fsanitize=address" flag without passing the sanitizer libraries manually
to the linker
There's also a behavior change in which linker is used - clang-cl uses
native linker by default. Old behavior can be restored by setting
cpp.linkerVariant to "lld"
Fixes: QBS-1522
Change-Id: I9528ce40aa5fdfab987672b15fffd830fa2d6376
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/modules/cpp-module.qdoc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/doc/reference/modules/cpp-module.qdoc b/doc/reference/modules/cpp-module.qdoc index 19575a0f8..72a934847 100644 --- a/doc/reference/modules/cpp-module.qdoc +++ b/doc/reference/modules/cpp-module.qdoc @@ -1217,8 +1217,6 @@ \qmlproperty string cpp::linkerMode \since Qbs 1.6 - \unixproperty - Controls whether to automatically use an appropriate compiler frontend instead of the system linker when linking binaries. @@ -1237,12 +1235,12 @@ \qmlproperty string cpp::linkerVariant \since Qbs 1.13 - \unixproperty - - Set this property to force the use of a specific \c ld implementation. A non-empty value - will result in the \c {-fuse-ld} option being emitted when linking with \c gcc or \c clang. + Set this property to force the use of a specific linker. A non-empty value + will result in the \c {-fuse-ld} option being emitted when linking with \c gcc, + \c clang or \c clang-cl. - The possible values are \c "bfd", \c "gold" and \c "lld". + The possible values for \c clang and \c gcc are \c "bfd", \c "gold" and \c "lld", + the possible values for \c clang-cl are \c "link" and \c "lld". \nodefaultvalue */ |