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

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

XMLWordPrintable

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

      WinRT (jom/nmake)
    • 7c34e0a7b48572be1f9e3fb45911a13b01798e37

      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}.

        1. Makefile
          258 kB
          Mårten Nordheim
        2. Makefile.Debug(nmake)
          254 kB
          Mårten Nordheim
        For Gerrit Dashboard: QTBUG-68635
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes