-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Jan Špaček edited this page Apr 11, 2016
·
4 revisions
There are a few prerequisites needed to compile the compiler and the runtime.
- The Rust compiler to compile the compiler. You will need to install the nightly version, as the compiler requires unstable Rust features.
- clang to compile the runtime, and
- tup to orchestrate the build.
To build the Spiral compiler, please run
cargo build
from the root directory. This command will place the Spiral compiler into target/debug/spiral
. To build the runtime, use
tup init
tup
inside the directory rt
. The runtime is compiled as a static library rt/build/runtime_debug.a
(slow, good for debugging) or rt/build/runtime_fast.a
(fast, good for nothing).
To run the tests of the language and the standard library, execute
./tests/run.sh
If there are some errors, it is a bug. However, if it fails magnificiently, something probably went wrong during installation or build.