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

Add a way to pass unescaped link flags to the compiler binary

    XMLWordPrintable

    Details

    • Technical Risk:
      Normal
    • Commits:
      20cb71daf6814a1bbb3008e4fa239d935ac20a55

      Description

      My use case

      Using qbs and a gcc toolchain for an embedded arm
      device.

      I need to pass --specs=nano.specs to g++ when invoking the linker.

      If I put it in cpp.linkerFlags it does not work as qbs will escape it with -Wl.

      I can put it in cpp.driverFlags, but then it gets passed to every call to g++ which is useless and generates warning when using Clang Static Analyzer:

      clang.exe: warning: argument unused during compilation: '–specs=nano.specs'

      What to do

      Add something like cpp.linkerDriverFlags with the semantics "flags to pass only when linking using the compiler binary".

      See also

      Passing unescaped flags to the linker in the QBS mailing list archives.

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            bterrier Benjamin Terrier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes