From 4c15a8f190d730cda9adb5879b60d1215a65f072 Mon Sep 17 00:00:00 2001 From: Reshabh Sharma Date: Thu, 15 Oct 2020 20:16:27 +0530 Subject: [PATCH] SWDEV-253557 Strip debug symbols for release builds Change-Id: I50032cb6aae7b1ed1a95c8e84fa8ce5cce476570 --- opencl/amdocl/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opencl/amdocl/CMakeLists.txt b/opencl/amdocl/CMakeLists.txt index 116c0308ff..c400ef52b0 100644 --- a/opencl/amdocl/CMakeLists.txt +++ b/opencl/amdocl/CMakeLists.txt @@ -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} $) +endif() + target_link_libraries(amdocl64 amdrocclr_static Threads::Threads dl ${ADDITIONAL_LIBRARIES})