Major cleanup for pop os minimal config.
This commit is contained in:
@@ -1,23 +1,30 @@
|
||||
#!/bin/bash
|
||||
# ---------------------------------------------------------------------------------
|
||||
# Odin compiler install recipe
|
||||
# Target: Void Linux
|
||||
# Target: Pop!_OS / Ubuntu / Debian
|
||||
# Builds from source - recommended method on Linux
|
||||
# ---------------------------------------------------------------------------------
|
||||
set -e
|
||||
ODIN_DIR="$HOME/.odin"
|
||||
|
||||
echo "Installing Odin build dependencies..."
|
||||
sudo xbps-install -Sy llvm18 llvm18-devel clang18 libstdc++-devel git-lfs
|
||||
git lfs install
|
||||
sudo apt update
|
||||
sudo apt install -y llvm-18-dev clang-18 git-lfs build-essential
|
||||
git lfs install --force
|
||||
|
||||
echo "Cloning Odin repository..."
|
||||
git clone https://github.com/odin-lang/Odin "$ODIN_DIR"
|
||||
cd "$ODIN_DIR"
|
||||
if [ -d "$ODIN_DIR" ]; then
|
||||
echo "Directory $ODIN_DIR already exists. Pulling latest..."
|
||||
cd "$ODIN_DIR" && git pull
|
||||
else
|
||||
git clone https://github.com/odin-lang/Odin "$ODIN_DIR"
|
||||
cd "$ODIN_DIR"
|
||||
fi
|
||||
|
||||
echo "Building Odin compiler..."
|
||||
LLVM_CONFIG=$(command -v llvm-config) make release-native
|
||||
LLVM_CONFIG=llvm-config-18 make release-native
|
||||
|
||||
echo ""
|
||||
echo "✓ Odin install complete."
|
||||
echo " Then verify with: odin version"
|
||||
echo " Add to your path if needed: export PATH=\"\$HOME/.odin:\$PATH\""
|
||||
echo " Then verify with: odin version"
|
||||
Reference in New Issue
Block a user