From fd9fb77e28dffbf6b33f38467ffa32e899d42ad6 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Thu, 7 Mar 2019 14:04:14 -0600 Subject: [PATCH] Do not strip release builds. Customer request. Change-Id: Id77dcdc0b6908c7a5e460edfd7d9468a1691e351 --- runtime/hsa-runtime/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/hsa-runtime/CMakeLists.txt b/runtime/hsa-runtime/CMakeLists.txt index 40966c3f04..65a039cc43 100644 --- a/runtime/hsa-runtime/CMakeLists.txt +++ b/runtime/hsa-runtime/CMakeLists.txt @@ -171,9 +171,9 @@ target_link_libraries ( ${CORE_RUNTIME_TARGET} elf dl pthread rt ) -## If the build is Release, strip the target library +## Strip should be optional or not at all if ( "${CMAKE_BUILD_TYPE}" STREQUAL Release ) - add_custom_command ( TARGET ${CORE_RUNTIME_TARGET} POST_BUILD COMMAND ${CMAKE_STRIP} *.so ) +# add_custom_command ( TARGET ${CORE_RUNTIME_TARGET} POST_BUILD COMMAND ${CMAKE_STRIP} *.so ) endif () ## Create symlinks for packaging and install