m10k / rpms / dotnet3.0

Forked from rpms/dotnet3.0 4 years ago
Clone

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

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