diff --git a/CMakeLists.txt b/CMakeLists.txt index ad18283221..5eb16133f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,7 @@ else() message(STATUS "The CMake build type is: ${CMAKE_BUILD_TYPE}") endif() -if (WIN32 AND NOT CMAKE_CL_SHOWINCLUDES_PREFIX) +if(WIN32 AND NOT CMAKE_CL_SHOWINCLUDES_PREFIX) # workaround until cmake fix is shipped https://github.com/ninja-build/ninja/issues/2280 # './build/.ninja_deps' may need to be deleted, the bug is "Note: including file: ..." is saved # as part of some file paths @@ -1236,12 +1236,15 @@ endif() # --- Stripped Binary "bun" if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT WIN32 AND NOT ASSERT_ENABLED) - # add_custom_command( - # TARGET ${bun} - # POST_BUILD - # COMMAND ${DSYMUTIL} -o ${BUN_WORKDIR}/bun.dSYM ${BUN_WORKDIR}/${bun} - # COMMENT "Stripping Symbols" - # ) + if(CI AND APPLE) + add_custom_command( + TARGET ${bun} + POST_BUILD + COMMAND ${DSYMUTIL} -z -o ${BUN_WORKDIR}/${bun}.dSYM ${BUN_WORKDIR}/${bun} + COMMENT "Generating .dSYM" + ) + endif() + add_custom_command( TARGET ${bun} POST_BUILD