diff --git a/lite/CMakeLists.txt b/lite/CMakeLists.txt index f4ca28d41a9f18059e6c68467076b664cc8bd32e..4c24bfc0b8788a6373ea64ba912e18c3112109df 100644 --- a/lite/CMakeLists.txt +++ b/lite/CMakeLists.txt @@ -177,6 +177,8 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM) ) add_dependencies(tiny_publish_cxx_lib paddle_light_api_shared) add_dependencies(publish_inference tiny_publish_cxx_lib) + add_custom_command(TARGET tiny_publish_cxx_lib POST_BUILD + COMMAND ${CMAKE_STRIP} "-s" ${INFER_LITE_PUBLISH_ROOT}/cxx/lib/libpaddle_light_api_shared.so) endif() endif() endif()