This repository was archived by the owner on Sep 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 2222export ET_BUILD_DIR=" et-build-android"
2323export CMAKE_OUT_DIR=" cmake-out-android"
2424export EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT=" OFF"
25- export EXECUTORCH_BUILD_EXTENSION_TENSOR=" ON"
2625export EXECUTORCH_BUILD_KERNELS_CUSTOM=" ON"
2726export CMAKE_OUT_DIR=" cmake-out-android"
28- # export DCMAKE_INSTALL_PREFIX=cmake-out-android
29- #
3027
3128build_runner_et () {
3229 rm -rf cmake-out-android
Original file line number Diff line number Diff line change @@ -104,7 +104,8 @@ COMMON_CMAKE_ARGS="\
104104 -DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
105105 -DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
106106 -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
107- -DEXECUTORCH_BUILD_XNNPACK=ON"
107+ -DEXECUTORCH_BUILD_XNNPACK=ON \
108+ -DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON"
108109
109110install_executorch () {
110111 # AOT lib has to be build for model export
@@ -155,13 +156,7 @@ install_executorch() {
155156}
156157
157158install_executorch_libs () {
158- # Install executorch python and C++ libs
159- export CMAKE_ARGS=" \
160- ${COMMON_CMAKE_ARGS} \
161- -DCMAKE_PREFIX_PATH=${MY_CMAKE_PREFIX_PATH} \
162- -DCMAKE_INSTALL_PREFIX=${TORCHCHAT_ROOT} /${ET_BUILD_DIR} /install"
163- export CMAKE_BUILD_ARGS=" --target install"
164-
159+ install_executorch
165160 install_executorch_python_libs $1
166161}
167162
You can’t perform that action at this time.
0 commit comments