Updates for the void...

This commit is contained in:
2026-06-11 16:32:53 +02:00
parent 24db65b6ed
commit 69527e3d61
9 changed files with 53 additions and 213 deletions
+3 -13
View File
@@ -1,32 +1,22 @@
#!/bin/bash
# ---------------------------------------------------------------------------------
# Odin compiler install recipe
# Target: Debian 13 Trixie
# Target: Void Linux
# Builds from source - recommended method on Linux
# ---------------------------------------------------------------------------------
set -e
ODIN_DIR="$HOME/odin"
echo "Installing Odin build dependencies..."
sudo apt-get update
sudo apt-get install -y clang llvm lld
sudo xbps-install -Sy llvm18 llvm18-devel clang18 libstdc++-devel
echo "Cloning Odin repository..."
git clone https://github.com/odin-lang/Odin "$ODIN_DIR"
cd "$ODIN_DIR"
echo "Building Odin compiler..."
./build_odin.sh release
echo "Adding Odin to PATH..."
if ! grep -q 'odin' "$HOME/.bashrc"; then
echo "export PATH=\$PATH:$ODIN_DIR" >> "$HOME/.bashrc"
fi
LLVM_CONFIG=$(command -v llvm-config) make release-native
echo ""
echo "✓ Odin install complete."
echo " Compiler: $ODIN_DIR/odin"
echo ""
echo " Run: source ~/.bashrc (or open a new terminal)"
echo " Then verify with: odin version"