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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.11.2
    • 5.11
    • Build tools: qmake
    • None
    • Android (mingw)

      WinRT (jom/nmake)
    • 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

              buddenha Oswald Buddenhagen
              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