Skip to content

Commit 51d38e6

Browse files
authored
Fix build_apple_frameworks.sh buck resolution
1 parent a05c4da commit 51d38e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/build_apple_frameworks.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ echo "Exporting headers"
206206
mkdir -p "$HEADERS_PATH"
207207

208208
BUCK2=$("$PYTHON" "$SOURCE_ROOT_DIR/tools/cmake/resolve_buck.py" --cache_dir="$SOURCE_ROOT_DIR/buck2-bin")
209-
if [[ -z "$BUCK2" ]]; then
210-
echo "Could not find buck2 executable in any buck2-bin directory under $SOURCE_ROOT_DIR"
211-
BUCK2=$(which buck2)
209+
if [[ ! -x "$BUCK2" ]]; then
210+
echo "Buck2 not found at '$BUCK2'"
211+
exit 1
212212
fi
213213

214214
check_command "$BUCK2"

0 commit comments

Comments
 (0)