A self-hosted build tool for the Zap programming language.
- Zap
v0.4.0
Thor uses itself for its second build. The first build uses zapc directly.
git clone https://github.com/thezaplang/thor
cd thor
./build.shOnce the bootstrap binary exists, rebuild Thor with Thor itself:
./build/thor buildYou now have a fully self-hosted Thor binary.
The bootstrap build restores Thor's pinned zap-toml dependency under
vendor/ and uses Zap's failable filesystem API. Make sure zapc is
available in PATH.
# Option A - copy to a directory already in PATH
sudo cp build/thor /usr/local/bin/thor
# Option B - add the build directory to PATH (add to ~/.bashrc or ~/.zshrc)
export PATH="$PATH:/path/to/thor/build"
source ~/.bashrcVerify:
thor --versionthor new <project_name>
thor build
thor run
thor build --compiler /path/to/zapc
thor build -- --emit-irTo add a dependency, run:
thor add <github_url>
See LICENSE.