Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68635

qmake: Hash mark ('#') in filenames don't get escaped

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.11
    • Fix Version/s: 5.11.2
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Environment:
      Android (mingw)

      WinRT (jom/nmake)
    • Commits:
      7c34e0a7b48572be1f9e3fb45911a13b01798e37

      Description

      When using the TESTDATA feature from qmake, and including a file with a hash mark in it, it will include the hash mark in the generated makefile, which then comments out the rest of the line and any consecutive lines ending with a backslash (keeping the syntax correct ). The build will then fail because it is unable to locate the file (e.g. for file named "abc#123" it will complain it cannot find file "abc").

      The same is also true for "qmake -project", which would require escaping as $${LITERAL_HASH}.

        Attachments

        1. Makefile
          258 kB
        2. Makefile.Debug(nmake)
          254 kB

          Issue Links

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

            Activity

              People

              Assignee:
              buddenha Oswald Buddenhagen
              Reporter:
              manordheim Mårten Nordheim
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes