Installer Amalgame

Trois façons d'installer le compilateur amc selon ton système.

Dernière version stable : v0.4.2 (voir toutes les versions)

Binaire pré-compilé

Le plus rapide. Télécharge l'archive correspondant à ton OS, extrais et place amc dans ton PATH.

🐧 Linux

🍎 macOS

🪟 Windows

Compilation depuis les sources

Si tu veux bootstrap toi-même ou si aucun binaire n'est dispo pour ton OS.

Linux

sudo apt install gcc libgc-dev libcurl4-openssl-dev
git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame
gcc -O2 -Iruntime snapshot/amc_lib.c -lgc -lm -lcurl -o snapshot/amc
./build_amc.sh
./amc --version

macOS

brew install bdw-gc curl
git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame
GC_PREFIX=$(brew --prefix bdw-gc)
CURL_PREFIX=$(brew --prefix curl)
gcc -O2 -Iruntime -I"$GC_PREFIX/include" -I"$CURL_PREFIX/include" \
    -L"$GC_PREFIX/lib" -L"$CURL_PREFIX/lib" \
    snapshot/amc_lib.c -lgc -lm -lcurl -o amc
./amc --version

Windows (MSYS2 MINGW64)

pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gc mingw-w64-x86_64-curl
git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame
gcc -O2 -Iruntime snapshot/amc_lib.c -lgc -lm -lcurl -lws2_32 -o amc.exe
./amc.exe --version

Et après ?

Vérifie l'installation avec amc --version, puis suis le tour pour découvrir le langage.