SWDEV-253557 Strip debug symbols for release builds

Change-Id: I4f75a0c08020ecd76e1eec159f266cd1f754af92


[ROCm/clr commit: 255c168ad7]
This commit is contained in:
Reshabh Sharma
2020-10-16 15:01:30 +05:30
والد 6b51a4e16a
کامیت 202d12ae03
@@ -74,4 +74,9 @@ set(amdocl64_src
add_library(amdocl64 SHARED ${amdocl64_src})
# strip lib for release builds
if(CMAKE_BUILD_TYPE STREQUAL "Release")
add_custom_command(TARGET amdocl64 POST_BUILD COMMAND ${CMAKE_STRIP} $<TARGET_FILE:amdocl64>)
endif()
target_link_libraries(amdocl64 amdrocclr_static Threads::Threads dl ${ADDITIONAL_LIBRARIES})