Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit d241641

Browse files
committed
ci fixes
1 parent 8744a94 commit d241641

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

runner/build_android.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ fi
2222
export ET_BUILD_DIR="et-build-android"
2323
export CMAKE_OUT_DIR="cmake-out-android"
2424
export EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT="OFF"
25-
export EXECUTORCH_BUILD_EXTENSION_TENSOR="ON"
2625
export EXECUTORCH_BUILD_KERNELS_CUSTOM="ON"
2726
export CMAKE_OUT_DIR="cmake-out-android"
28-
# export DCMAKE_INSTALL_PREFIX=cmake-out-android
29-
#
3027

3128
build_runner_et() {
3229
rm -rf cmake-out-android

torchchat/utils/scripts/install_utils.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff 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

109110
install_executorch() {
110111
# AOT lib has to be build for model export
@@ -155,13 +156,7 @@ install_executorch() {
155156
}
156157

157158
install_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

0 commit comments

Comments
 (0)