We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d192b1f commit 66c57dbCopy full SHA for 66c57db
build/build_android_llm_demo.sh
@@ -112,6 +112,9 @@ build_aar() {
112
# Rename libexecutorch_jni.so to libexecutorch.so for soname consistency
113
# between Java and JNI
114
find jni -type f -name "libexecutorch_jni.so" -exec bash -c 'mv "$1" "${1/_jni/}"' bash {} \;
115
+ if [ "$EXECUTORCH_CMAKE_BUILD_TYPE" == "Release" ]; then
116
+ find jni -type f -name "*.so" -exec "$ANDROID_NDK"/toolchains/llvm/prebuilt/*/bin/llvm-strip {} \;
117
+ fi
118
# Zip all necessary files into the AAR file
119
zip -r executorch.aar libs jni/*/libexecutorch.so jni/*/libqnn*.so jni/*/libQnn*.so jni/*/libneuron_backend.so jni/*/libneuron_buffer_allocator.so jni/*/libneuronusdk_adapter.mtk.so AndroidManifest.xml
120
popd
0 commit comments