llvm.org GIT mirror llvm / 9610a42
[CMake] Provide the ability to skip stripping when generating dSYMs For debugging it is useful to be able to generate dSYM files but not strip the executables. This change adds the ability to skip stripping by setting LLVM_EXTERNALIZE_DEBUGINFO_SKIP_STRIP=On. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265041 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 4 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
11841184 return()
11851185 endif()
11861186
1187 if(NOT LLVM_EXTERNALIZE_DEBUGINFO_SKIP_STRIP)
1188 set(strip_command COMMAND xcrun strip -Sxl $)
1189 endif()
1190
11871191 if(APPLE)
11881192 if(CMAKE_CXX_FLAGS MATCHES "-flto"
11891193 OR CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE} MATCHES "-flto")
11941198 endif()
11951199 add_custom_command(TARGET ${name} POST_BUILD
11961200 COMMAND xcrun dsymutil $
1197 COMMAND xcrun strip -Sxl $)
1201 ${strip_command}
1202 )
11981203 else()
11991204 message(FATAL_ERROR "LLVM_EXTERNALIZE_DEBUGINFO isn't implemented for non-darwin platforms!")
12001205 endif()