-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfe
More file actions
executable file
·37 lines (31 loc) · 975 Bytes
/
fe
File metadata and controls
executable file
·37 lines (31 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Fe compiler wrapper script with platform detection
# Currently only Linux x86_64 is supported
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
BIN_DIR="$SCRIPT_DIR/../bin"
# Detect platform
OS="$(uname -s)"
ARCH="$(uname -m)"
case "$OS-$ARCH" in
Linux-x86_64)
FE_BINARY="$BIN_DIR/fe-linux-x86_64"
;;
*)
echo "Error: Fe binary not available for $OS-$ARCH" >&2
echo "" >&2
echo "Currently only Linux x86_64 is supported." >&2
echo "Options:" >&2
echo " 1. Use a Linux machine or VM" >&2
echo " 2. Use GitHub Codespaces or similar cloud environment" >&2
echo " 3. Push changes and let CI validate the examples" >&2
echo "" >&2
exit 1
;;
esac
if [[ ! -x "$FE_BINARY" ]]; then
echo "Error: Fe binary not found at $FE_BINARY" >&2
echo "Please ensure the binary exists and is executable." >&2
exit 1
fi
exec "$FE_BINARY" "$@"