SWDEV-253557 Strip shared lib for release builds
Change-Id: I79608406b3295c762a3781abd455bd63e6893dd4
This commit is contained in:
کامیت شده توسط
Mark Searles
والد
c5184d61b4
کامیت
eac709a8a9
@@ -234,6 +234,12 @@ if (UNIX)
|
|||||||
message(STATUS "Found: ${LIBNUMA}")
|
message(STATUS "Found: ${LIBNUMA}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# strip the shared lib for release build
|
||||||
|
if(CMAKE_BUILD_TYPE STREQUAL "Release" AND ${BUILD_SHARED_LIBS})
|
||||||
|
add_custom_command(TARGET amdrocclr_static POST_BUILD COMMAND ${CMAKE_STRIP} $<TARGET_FILE_NAME:amdrocclr_static>)
|
||||||
|
endif()
|
||||||
|
|
||||||
#comment out as it's not available in cmake 3.5
|
#comment out as it's not available in cmake 3.5
|
||||||
#if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
#if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||||
if(NOT CMAKE_INSTALL_PREFIX)
|
if(NOT CMAKE_INSTALL_PREFIX)
|
||||||
|
|||||||
مرجع در شماره جدید
Block a user