Skip to content

Commit c985d80

Browse files
shoumikhinZonglin Peng
authored andcommitted
Fix buck binary search rule.
Differential Revision: D68452795 Pull Request resolved: pytorch#7799
1 parent 695cc6f commit c985d80

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build/build_apple_frameworks.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,9 @@ echo "Exporting headers"
187187

188188
mkdir -p "$HEADERS_PATH"
189189

190-
# Set BUCK2 to the path of the buck2 executable in $OUTPUT/*/buck2-bin/buck2-*
191-
BUCK2=$(find . -type f -path '*/buck2-bin/buck2-*' | head -n 1)
190+
BUCK2=$(find $SOURCE_ROOT_DIR -type f -path '*/buck2-bin/buck2-*' | head -n 1)
192191
if [[ -z "$BUCK2" ]]; then
193-
echo "Could not find buck2 executable in any buck2-bin directory under $OUTPUT"
192+
echo "Could not find buck2 executable in any buck2-bin directory under $SOURCE_ROOT_DIR"
194193
BUCK2=$(which buck2)
195194
fi
196195

0 commit comments

Comments
 (0)