Skip to content

Commit 63f26b0

Browse files
Update ci.yml
1 parent 6d2e045 commit 63f26b0

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -408,29 +408,29 @@ jobs:
408408
409409
create_wrapper() {
410410
WRAP="$1"
411-
cat <<'EOF' > autodetect/$WRAP
412-
#!/bin/bash
413-
WRAPDIR="$(cd "$(dirname "$0")" && pwd)"
414-
415-
# Use cached toolchain if already detected
416-
if [ -f "$WRAPDIR/.toolchain" ]; then
417-
REALDIR="$(cat "$WRAPDIR/.toolchain")"
418-
exec "$REALDIR/$(basename "$0")" "$@"
419-
fi
411+
cat <<'EOF' > autodetect/$WRAP
412+
#!/bin/bash
413+
WRAPDIR="$(cd "$(dirname "$0")" && pwd)"
414+
415+
# Use cached toolchain if already detected
416+
if [ -f "$WRAPDIR/.toolchain" ]; then
417+
REALDIR="$(cat "$WRAPDIR/.toolchain")"
418+
exec "$REALDIR/$(basename "$0")" "$@"
419+
fi
420420
421-
# Search for Darwin clang produced by native_cctools
422-
FOUND=$(find depends -maxdepth 7 -type f -name clang 2>/dev/null | grep native | head -n1)
421+
# Search for Darwin clang produced by native_cctools
422+
FOUND=$(find depends -maxdepth 7 -type f -name clang 2>/dev/null | grep native | head -n1)
423423
424-
if [ -n "$FOUND" ]; then
425-
REALDIR="$(dirname "$FOUND")"
426-
echo "$REALDIR" > "$WRAPDIR/.toolchain"
427-
echo "🚀 Auto-detected Darwin compiler at: $REALDIR"
428-
exec "$REALDIR/$(basename "$0")" "$@"
429-
fi
424+
if [ -n "$FOUND" ]; then
425+
REALDIR="$(dirname "$FOUND")"
426+
echo "$REALDIR" > "$WRAPDIR/.toolchain"
427+
echo "🚀 Auto-detected Darwin compiler at: $REALDIR"
428+
exec "$REALDIR/$(basename "$0")" "$@"
429+
fi
430430
431-
# Fallback: use GCC until toolchain is built
432-
exec /usr/bin/gcc "$@"
433-
EOF
431+
# Fallback: use GCC until toolchain is built
432+
exec /usr/bin/gcc "$@"
433+
EOF
434434
chmod +x autodetect/$WRAP
435435
}
436436

0 commit comments

Comments
 (0)