Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Done
-
Affects Version/s: 1.18.1
-
Fix Version/s: 1.20
-
Component/s: Toolchains: Visual C++
-
Labels:None
-
Platform/s:
-
Commits:3f3b4df74258bae8e5ce2bd9c9e6202be43f70e1 (qbs/qbs/1.20)
Description
On Windows with the msvc toolchain, when defining a linker wrapper via the cpp.linkerWrapper property, the link step fails with an error message stating "nologo" cannot be found. For example, consider cpp.linkerWrapper: ["wrapper.exe"]. The resulting linker command line is screwed up:
wrapper.exe /nologo <libraries> /Fe<executable> /link cl.exe /nologo <linker-options>
The correct order of arguments should be:
wrapper.exe cl.exe /nologo <libraries> /Fe<executable> /link /nologo <linker-options>