-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path1_17_3_strip.patch
20 lines (20 loc) · 1 KB
/
1_17_3_strip.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/tools/ci_build/github/linux/copy_strip_binary.sh
+++ b/tools/ci_build/github/linux/copy_strip_binary.sh
@@ -35,5 +35,4 @@ fi
echo "Copy debug symbols in a separate file and strip the original binary."
if [[ $LIB_NAME == *.dylib ]]
then
- dsymutil $BINARY_DIR/$ARTIFACT_NAME/lib/$LIB_NAME -o $BINARY_DIR/$ARTIFACT_NAME/lib/$LIB_NAME.dSYM
strip -S $BINARY_DIR/$ARTIFACT_NAME/lib/$LIB_NAME
@@ -46,4 +44,11 @@ elif [[ $LIB_NAME == *.so.* ]]
fi
+if [[ $LIB_NAME == *.dylib ]]
+then
+ strip -x $BINARY_DIR/$ARTIFACT_NAME/lib/$LIB_NAME
+elif [[ $LIB_NAME == *.so.* ]]
+then
+ strip -s $BINARY_DIR/$ARTIFACT_NAME/lib/$LIB_NAME || true # クロスコンパイルでは不可であるため
+fi
cp $SOURCE_DIR/include/onnxruntime/core/session/onnxruntime_*.h $BINARY_DIR/$ARTIFACT_NAME/include
cp $SOURCE_DIR/include/onnxruntime/core/framework/provider_options.h $BINARY_DIR/$ARTIFACT_NAME/include
cp $SOURCE_DIR/include/onnxruntime/core/providers/cpu/cpu_provider_factory.h $BINARY_DIR/$ARTIFACT_NAME/include