!23627 [MS][LITE][develop] remove redundant strip
Merge pull request !23627 from sunsuodong/remove_redundant_strip
This commit is contained in:
commit
e4f94f4a33
|
@ -18,7 +18,7 @@ else()
|
|||
set(opencv_CXXFLAGS "${opencv_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
endif()
|
||||
set(opencv_CFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -O2")
|
||||
set(opencv_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
set(opencv_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack -s")
|
||||
endif()
|
||||
|
||||
if(ENABLE_GITEE)
|
||||
|
@ -49,7 +49,7 @@ if(MSVC)
|
|||
mindspore_add_pkg(opencv
|
||||
VER 4.5.1
|
||||
LIBS opencv_core451.lib opencv_imgcodecs451.lib opencv_imgproc451.lib
|
||||
LIB_PATH x64/vc15/lib
|
||||
LIB_PATH x64/*/lib
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -DWITH_PROTOBUF=OFF -DWITH_WEBP=OFF -DWITH_IPP=OFF
|
||||
|
|
|
@ -100,16 +100,3 @@ if(SUPPORT_TRAIN)
|
|||
target_link_libraries(mindspore-lite-train-jni ${LITE_TRAIN_SO_NAME})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(NDK_STRIP
|
||||
"${ANDROID_NDK}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/aarch64-linux-android/bin/strip")
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
if(PLATFORM_ARM64 OR PLATFORM_ARM32)
|
||||
add_custom_command(TARGET mindspore-lite-jni POST_BUILD COMMAND ${NDK_STRIP}
|
||||
${CMAKE_BINARY_DIR}/libmindspore-lite*.so)
|
||||
elseif(NOT WIN32)
|
||||
add_custom_command(TARGET mindspore-lite-jni POST_BUILD COMMAND strip
|
||||
${CMAKE_BINARY_DIR}/libmindspore-lite*.so)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
@ -36,7 +36,4 @@ if(MSLITE_ENABLE_CONVERTER)
|
|||
target_link_libraries(codegen PRIVATE
|
||||
${OBF_LIB_DIR}/libmsdeobfuscator-lite.so)
|
||||
endif()
|
||||
if(NOT WIN32 AND "${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
add_custom_command(TARGET codegen POST_BUILD COMMAND strip ${CODEGEN_PATH})
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
@ -332,25 +332,6 @@ if(SUPPORT_TRAIN)
|
|||
target_link_libraries(mindspore-lite-train_static minddata-lite mindspore-lite)
|
||||
endif()
|
||||
|
||||
if(NOT APPLE AND PLATFORM_ARM)
|
||||
set(NDK_STRIP
|
||||
"${ANDROID_NDK}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/aarch64-linux-android/bin/strip")
|
||||
if(TARGET_HIMIX200)
|
||||
set(NDK_STRIP ${HIMIX_STRIP})
|
||||
elseif(TARGET_OHOS_LITE)
|
||||
set(NDK_STRIP "llvm-strip")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT APPLE AND "${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
if(PLATFORM_ARM)
|
||||
add_custom_command(TARGET mindspore-lite POST_BUILD COMMAND ${NDK_STRIP}
|
||||
${CMAKE_BINARY_DIR}/src/libmindspore-lite*.so)
|
||||
elseif(NOT WIN32)
|
||||
add_custom_command(TARGET mindspore-lite POST_BUILD COMMAND strip ${CMAKE_BINARY_DIR}/src/libmindspore-lite*.so)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
########################## build optimize and float16 library #################################
|
||||
if(PLATFORM_ARM)
|
||||
if(PLATFORM_ARM64)
|
||||
|
|
Loading…
Reference in New Issue