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

Properties item has effect even it is unconditional

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 1.16.0, 1.17.0
    • General
    • None
    • Any GCC or MinGW toolchian
    • All

    Description

      If try to build the application, contains from the one assembler-source main.s file, then compilation fails. The reason is that the invoked linker path becomes empty by unknown reason:

      import qbs
      
      CppApplication {
          Properties {
              condition: false
              cpp.linkerPath: "foo"
          }
      
          files: "main.s"
      }
      

      The returning error the following:

      14:16:00: Running steps for project prop-bug...
      assembling main.s [prop-bug]
      linking prop-bug.exe [prop-bug]
      The process '' could not be started: No program defined. The full command line invocation was: "" -m i386pe -o C:/Users/denis/Documents/build-prop-bug-GCC_X86-Debug/Debug_GCC_X86_8e6483163687ab3d/prop-bug.f0bf608e/prop-bug.exe C:/Users/denis/Documents/build-prop-bug-GCC_X86-Debug/Debug_GCC_X86_8e6483163687ab3d/prop-bug.f0bf608e/3a52ce780950d4d9/main.s.o
      The following products could not be built for configuration Debug_GCC_X86_8e6483163687ab3d:
      prop-bug
      

      Note: This does not reproduces if to replace the main.s file with the C-source main.c file.

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              kuzulis Denis Shienkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes