Skip to content

Commit b7bd335

Browse files
committed
Set SDKROOT for macOS Roc builds
1 parent 4e97ffd commit b7bd335

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/all_tests.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ export PATH="$(pwd)/$ROC_DIR:$PATH"
8686
echo ""
8787
echo "Using roc version: $(roc version)"
8888

89+
if [ "$(uname -s)" = "Darwin" ] && [ -z "${SDKROOT:-}" ]; then
90+
SDKROOT=$(xcrun --sdk macosx --show-sdk-path 2>/dev/null || true)
91+
if [ -n "$SDKROOT" ]; then
92+
export SDKROOT
93+
echo "Using SDKROOT: $SDKROOT"
94+
fi
95+
fi
96+
8997
# Build the platform
9098
if [ "${NO_BUILD:-}" != "1" ]; then
9199
echo ""

0 commit comments

Comments
 (0)