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

FEATURE_headersclean does not work with if CMAKE_CXX_FLAGS contains more than one option

    XMLWordPrintable

    Details

    • Commits:
      05e029619f (qt/qtbase/dev) c7e94c8b7f (qt/qtbase/6.3) 05e029619f (qt/tqtc-qtbase/dev) c7e94c8b7f (qt/tqtc-qtbase/6.3) 18e93dd483 (qt/qtbase/6.2) 18e93dd483 (qt/tqtc-qtbase/6.2)

      Description

      If you pass CMAKE_CXX_FLAGS to cmake on the command-line and that contains more than one flag, then you can't use headersclean because the build will fail.

      [11/2041] headersclean: Checking header src/corelib/animation/qabstractanimation.h
      FAILED: src/corelib/header_check/animation/qabstractanimation.h.o /home/tjmaciei/obj/qt/qt6-clang/qtbase/src/corelib/header_check/animation/qabstractanimation.h.o 
      cd /home/tjmaciei/obj/qt/qt6-clang/qtbase/src/corelib && /usr/bin/cmake -E make_directory header_check/animation && ccache /home/tjmaciei/bin/clang++ -c "-O3 -g1 -march=tigerlake -mprefer-vector-width=256 -maes" -DQT_NO_FOREACH [... other flags ...]
      error: invalid integral value '3 -g1 -march=tigerlake -mprefer-vector-width=256 -maes' in '-O3 -g1 -march=tigerlake -mprefer-vector-width=256 -maes'
      

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            thiago Thiago Macieira
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes