From 8d931dc8deceaef10c5a21e3b93610ee9a1da5bd Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Thu, 23 Jan 2025 11:50:28 -0800 Subject: [PATCH] Fix buck binary search rule. (#7799) Summary: . Reviewed By: kirklandsign Differential Revision: D68452795 --- build/build_apple_frameworks.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build/build_apple_frameworks.sh b/build/build_apple_frameworks.sh index 5746adb5a1f..a6494fb233f 100755 --- a/build/build_apple_frameworks.sh +++ b/build/build_apple_frameworks.sh @@ -187,10 +187,9 @@ echo "Exporting headers" mkdir -p "$HEADERS_PATH" -# Set BUCK2 to the path of the buck2 executable in $OUTPUT/*/buck2-bin/buck2-* -BUCK2=$(find . -type f -path '*/buck2-bin/buck2-*' | head -n 1) +BUCK2=$(find $SOURCE_ROOT_DIR -type f -path '*/buck2-bin/buck2-*' | head -n 1) if [[ -z "$BUCK2" ]]; then - echo "Could not find buck2 executable in any buck2-bin directory under $OUTPUT" + echo "Could not find buck2 executable in any buck2-bin directory under $SOURCE_ROOT_DIR" BUCK2=$(which buck2) fi