Skip to content

Commit 0ab28f4

Browse files
committed
Update
[ghstack-poisoned]
1 parent cc35eca commit 0ab28f4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.ci/scripts/test_backend.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,11 @@ if [[ "$(uname)" == "Darwin" ]]; then
2525
eval "$(conda shell.bash hook)"
2626
${CONDA_RUN} --no-capture-output pip install awscli==1.37.21
2727
CONDA_PREFIX="${CONDA_RUN} --no-capture-output"
28-
SETUP_SCRIPT=.ci/scripts/setup-macos.sh
2928
else
3029
IS_MACOS=0
3130
CONDA_PREFIX=""
32-
SETUP_SCRIPT=.ci/scripts/setup-linux.sh
3331
fi
3432

35-
CMAKE_ARGS="$EXTRA_BUILD_ARGS" ${CONDA_PREFIX} $SETUP_SCRIPT --build-tool cmake --build-mode Release --editable true
36-
3733
export PYTHON_EXECUTABLE=python
3834

3935
# CMake options to use, in addition to the defaults.
@@ -59,6 +55,13 @@ if [[ "$FLOW" == *vulkan* ]]; then
5955
EXTRA_BUILD_ARGS+=" -DEXECUTORCH_BUILD_VULKAN=ON"
6056
fi
6157

58+
if [[ $IS_MACOS -eq 1 ]]; then
59+
SETUP_SCRIPT=.ci/scripts/setup-macos.sh
60+
else
61+
SETUP_SCRIPT=.ci/scripts/setup-linux.sh
62+
fi
63+
CMAKE_ARGS="$EXTRA_BUILD_ARGS" ${CONDA_PREFIX} $SETUP_SCRIPT --build-tool cmake --build-mode Release --editable true
64+
6265
if [[ "$FLOW" == *arm* ]]; then
6366
# Setup ARM deps.
6467
.ci/scripts/setup-arm-baremetal-tools.sh

0 commit comments

Comments
 (0)