ci: add recommended compiler flags for macOS debug builds

In order to use the profiler, Jetbrains recommend these flags for macOS Debug builds
This commit is contained in:
Dimitris Panokostas 2025-01-07 17:55:05 +01:00
parent 359e8e73ee
commit a280b7c073
No known key found for this signature in database
GPG Key ID: 330156A68E9E0929

View File

@ -35,4 +35,8 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
include_directories("/usr/local/include") include_directories("/usr/local/include")
set(CMAKE_EXE_LINKER_FLAGS "-L/usr/local/lib -framework IOKit -framework Foundation -liconv") set(CMAKE_EXE_LINKER_FLAGS "-L/usr/local/lib -framework IOKit -framework Foundation -liconv")
endif () endif ()
if (CMAKE_BUILD_TYPE MATCHES "Debug")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer")
endif ()
endif () endif ()