From 13f3590a5c6221b68decf76780056d9255a92391 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Wed, 6 May 2026 14:50:08 +0200 Subject: [PATCH] utils.zsh: Enable debug symbols for ObjC To force CMake-based projects to emit debug symbols even in release configuration, the -g argument needs to be explicitly added to the global CMAKE__FLAGS_RELEASE variable. This was done for C and C++ already, but not for ObjC and ObjC++ (which are correctly treated as separate languages by CMake). This is required to make Qt plugins like the cocoa platform plugin "debuggable" with dSYM files loaded into a debugger. --- utils.zsh/30-build.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.zsh/30-build.zsh b/utils.zsh/30-build.zsh index 40cf65ee6..ebb29e643 100644 --- a/utils.zsh/30-build.zsh +++ b/utils.zsh/30-build.zsh @@ -113,6 +113,8 @@ setup_build_parameters() { -DCMAKE_C_FLAGS="${c_flags} -std=c17" -DCMAKE_C_FLAGS_RELEASE="-O3 -g -DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-O3 -g -DNDEBUG" + -DCMAKE_OBJC_FLAGS_RELEASE="-O3 -g -DNDEBUG" + -DCMAKE_OBJCXX_FLAGS_RELEASE="-O3 -g -DNDEBUG" ) if [[ "${PACKAGE_NAME}" != 'qt6' ]] {