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

Boot2Qt CMake toolchain file overwrites CMAKE_CXX_FLAGS_INIT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9.0
    • Device Creation
    • None

      When initially configuring user projects with a debug configuration, Qt Creator runs CMake with "-DCMAKE_CXX_FLAGS_INIT=-DQT_QML_DEBUG", to enable the QML debugging feature for the build.

      Unfortunately that doesn't have any effect, because the toolchain file overwrites that:

      /opt/toolchain/sysroots/aarch64-pokysdk-linux/usr/share/cmake/Qt6Toolchain.cmake(31):  set(CMAKE_CXX_FLAGS_INIT  -m64 -march=x86-64-v3 -fstack-protector-strong   -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/toolchain/sysroots/x86-64-v3-poky-linux )
      

      The result is that after users configure their project, QML debugging is disabled. They have to manually re-enable QML debugging in the UI and trigger another CMake run. See the linked bug report QTCREATORBUG-32434

        For Gerrit Dashboard: QTBUG-139293
        # Subject Branch Project Status CR V

            sapiippo Samuli Piippo
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change