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

Re-running CMake causes Android builds to recompile everything when building Qt itself

    XMLWordPrintable

Details

    • Android
    • 257edbfa5363a3d35e66d342ae43e5994b297f97 (qt/qtbase/dev)

    Description

      Every time CMake is re-run, CMAKE_CXX_FLAGS_DEBUG and CMAKE_C_FLAGS_DEBUG get another copy of -fno-limit-debug-info added. CMAKE_CXX_FLAGS_RELEASE and CMAKE_C_FLAGS_RELEASE get another copy of -O2 -DNDEBUG added. These flags are coming from the Android NDK, but the fault is actually in qtbase where in QtFlagHandlingHelpers.cmake we write these variables back into the cache. We should never do that, it isn't safe because of exactly the sort of scenario happening here.

      Attachments

        Issue Links

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

          Activity

            People

              crscott Craig Scott
              crscott Craig Scott
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes