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

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