Skip to content

Commit 85d8af6

Browse files
shoumikhinDannyYuyang-quic
authored andcommitted
Use resolve_buck script to find buck executable when building Apple f… (pytorch#9369)
Taking care of pytorch#9312
1 parent 3c723ec commit 85d8af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/build_apple_frameworks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ echo "Exporting headers"
205205

206206
mkdir -p "$HEADERS_PATH"
207207

208-
BUCK2=$(find $SOURCE_ROOT_DIR -type f -path '*/buck2-bin/buck2-*' | head -n 1)
208+
BUCK2=$("$PYTHON" "$SOURCE_ROOT_DIR/tools/cmake/resolve_buck.py" --cache_dir="$SOURCE_ROOT_DIR/buck2-bin")
209209
if [[ -z "$BUCK2" ]]; then
210210
echo "Could not find buck2 executable in any buck2-bin directory under $SOURCE_ROOT_DIR"
211211
BUCK2=$(which buck2)

0 commit comments

Comments
 (0)