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

linker flags concatenation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 1.12.1
    • Platforms: Darwin
    • None
    • Qt Creator 4.7.1 (same in 4.8-beta1), OSX 10.13
    • macOS

    Description

      I have such line in qbs for macos target:

      cpp.linkerFlags: base.concat(project.profiling ? ["-pg"] : []).concat(project.sanitize ? ["-fsanitize=address"] : [])
      

      with the profiling=false and sanitize=true I got next linking command:

      /usr/bin/clang++ -Wl,-install_name,my.dylib,-headerpad_max_install_names,-arch,x86_64,-macosx_version_min,10.11,-fsanitize=address -dynamiclib -stdlib=libc++ ...
      

      and linker says: 'unknown option: -fsanitize=address'

      The problem in appending -fsanitize=address via comma. When I change the comma to the space and run in console linker is able to link.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            johngull Vitaly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes