Skip to content

Commit 20c41c9

Browse files
committed
Fix CI
1 parent 0b483fc commit 20c41c9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.ci/scripts/utils.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,17 @@ build_executorch_runner_cmake() {
125125
clean_executorch_install_folders
126126
mkdir "${CMAKE_OUTPUT_DIR}"
127127

128-
pushd "${CMAKE_OUTPUT_DIR}" || return
129128
if [[ $1 == "Debug" ]]; then
130129
CXXFLAGS="-fsanitize=address,undefined"
131130
else
132131
CXXFLAGS=""
133132
fi
134-
CXXFLAGS="$CXXFLAGS" retry cmake -DPYTHON_EXECUTABLE="${PYTHON_EXECUTABLE}" -DCMAKE_BUILD_TYPE="${1:-Release}" ..
135-
popd || return
133+
CXXFLAGS="$CXXFLAGS" retry cmake \
134+
-DPYTHON_EXECUTABLE="${PYTHON_EXECUTABLE}" \
135+
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
136+
-DEXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR=ON \
137+
-DCMAKE_BUILD_TYPE="${1:-Release}" \
138+
-B${CMAKE_OUTPUT_DIR} .
136139

137140
if [ "$(uname)" == "Darwin" ]; then
138141
CMAKE_JOBS=$(( $(sysctl -n hw.ncpu) - 1 ))

0 commit comments

Comments
 (0)