Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0.0
-
-
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
- relates to
-
QTBUG-85992 Make optimization flags consistent for Release and RelWithDebInfo in relation to qmake
- Closed
-
QTBUG-86866 Fix optimization flags used for Core and Gui
- Closed