SWDEV-253557 Strip debug symbols for release builds
Change-Id: I50032cb6aae7b1ed1a95c8e84fa8ce5cce476570
[ROCm/clr commit: 4c15a8f190]
This commit is contained in:
committed by
Reshabh kumar Sharma
parent
0e19d02735
commit
78e8224ad3
@@ -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_NAME:amdocl64>)
|
||||
endif()
|
||||
|
||||
target_link_libraries(amdocl64 amdrocclr_static Threads::Threads dl ${ADDITIONAL_LIBRARIES})
|
||||
|
||||
Reference in New Issue
Block a user