roc/BUILDING_FROM_SOURCE.md
Anton-4 186d4d2bbc
Update Zig version from 0.15.1 to 0.15.2
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-10-31 18:21:26 +01:00

721 B

Building the new Roc compiler from source

Note: If you're looking to build the old compiler from source, go here.

If you run into any problems getting Roc built from source, please ask for help in the #beginners channel on Roc Zulip (the fastest way), or create an issue in this repo!

Download zig 0.15.2 and add it to your PATH. Search "Setting up PATH" for more details.

Do a test run with

zig build roc

Using Nix

If you're familiar with nix and like using it, you can build the compiler like this:

nix develop ./src
buildcmd