Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1653

Regression when using cpp.linkerWrapper with msvc toolchain

    XMLWordPrintable

    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:
      Windows
    • 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>

        Attachments

        For Gerrit Dashboard: QBS-1653
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            kuzulis Denis Shienkov
            Reporter:
            thomas.epting Thomas Epting
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes