Skip to content

Build or install from source

Setup

Before being able to compile the source code, you first have to download it from GitHub and install Golang (if you don't have it already). Furthermore you need a common C++ compiler and CMake to build the compiler executable.

Clone from GitHub

git clone https://github.com/spicelang/spice.git
cd spice

Run setup script for setting up your dev environment

To build Spice, you can use the dev-setup.sh for Linux or the dev-setup.bat for Windows. This will prepare your dev environment, install the correct LLVM version and builds the Spice executable for the first time to the bin directory.

./dev-setup.sh
.\dev-setup.bat

Use

cd bin
spice [options] <input>