File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1052,6 +1052,13 @@ else () # NOT MSVC
10521052 set (CMAKE_CXX_FLAGS_RELEASE "${NODEBUGINFO_FLAGS} -O3 -fomit-frame-pointer" CACHE INTERNAL "C++ release flags" )
10531053 set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${DEBUGINFO_FLAGS} -O3 -fno-omit-frame-pointer" CACHE INTERNAL "C++ release with debug info flags" )
10541054
1055+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
1056+ # On Darwin -fstandalone-debug is enabled by default, so we don't need
1057+ # to add it for AppleClang.
1058+ set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fstandalone-debug" )
1059+ set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -fstandalone-debug" )
1060+ endif ()
1061+
10551062endif ()
10561063
10571064# put together the final flags
You can’t perform that action at this time.
0 commit comments