Blame SOURCES/core-setup-do-not-strip.patch

f2d766
--- a/src/settings.cmake
f2d766
+++ b/src/settings.cmake
f2d766
@@ -69,55 +69,10 @@
f2d766
     endif (CMAKE_SYSTEM_NAME STREQUAL Darwin)
f2d766
 endif ()
f2d766
 
f2d766
-function(strip_symbols targetName outputFilename)
f2d766
-    if(CLR_CMAKE_PLATFORM_UNIX)
f2d766
-        if(STRIP_SYMBOLS)
f2d766
-
f2d766
-            # On the older version of cmake (2.8.12) used on Ubuntu 14.04 the TARGET_FILE
f2d766
-            # generator expression doesn't work correctly returning the wrong path and on
f2d766
-            # the newer cmake versions the LOCATION property isn't supported anymore.
f2d766
-            if(CMAKE_VERSION VERSION_EQUAL 3.0 OR CMAKE_VERSION VERSION_GREATER 3.0)
f2d766
-                set(strip_source_file $<TARGET_FILE:${targetName}>)
f2d766
-            else()
f2d766
-                get_property(strip_source_file TARGET ${targetName} PROPERTY LOCATION)
f2d766
-            endif()
f2d766
-
f2d766
-            if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
f2d766
-                set(strip_destination_file ${strip_source_file}.dwarf)
f2d766
-
f2d766
-                add_custom_command(
f2d766
-                    TARGET ${targetName}
f2d766
-                    POST_BUILD
f2d766
-                    VERBATIM 
f2d766
-                    COMMAND ${DSYMUTIL} --flat --minimize ${strip_source_file}
f2d766
-                    COMMAND ${STRIP} -u -r ${strip_source_file}
f2d766
-                    COMMENT Stripping symbols from ${strip_source_file} into file ${strip_destination_file}
f2d766
-                )
f2d766
-            else(CMAKE_SYSTEM_NAME STREQUAL Darwin)
f2d766
-                set(strip_destination_file ${strip_source_file}.dbg)
f2d766
-
f2d766
-                add_custom_command(
f2d766
-                    TARGET ${targetName}
f2d766
-                    POST_BUILD
f2d766
-                    VERBATIM 
f2d766
-                    COMMAND ${OBJCOPY} --only-keep-debug ${strip_source_file} ${strip_destination_file}
f2d766
-                    COMMAND ${OBJCOPY} --strip-unneeded ${strip_source_file}
f2d766
-                    COMMAND ${OBJCOPY} --add-gnu-debuglink=${strip_destination_file} ${strip_source_file}
f2d766
-                    COMMENT Stripping symbols from ${strip_source_file} into file ${strip_destination_file}
f2d766
-                )
f2d766
-            endif(CMAKE_SYSTEM_NAME STREQUAL Darwin)
f2d766
-
f2d766
-            set(${outputFilename} ${strip_destination_file} PARENT_SCOPE)
f2d766
-        endif(STRIP_SYMBOLS)
f2d766
-    endif(CLR_CMAKE_PLATFORM_UNIX)
f2d766
-endfunction()
f2d766
-
f2d766
 function(install_symbols targetName destination_path)
f2d766
     if(WIN32)
f2d766
         install(FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${targetName}.pdb DESTINATION ${destination_path})
f2d766
     else()
f2d766
-        strip_symbols(${targetName} strip_destination_file)
f2d766
-        install(FILES ${strip_destination_file} DESTINATION ${destination_path})
f2d766
     endif()
f2d766
 endfunction()
f2d766