Open Manual

Build Nytrix

Use the repository's ./make driver for normal builds. It owns build configuration, generated artifacts, and tool dependencies.

Prerequisites: the C compiler, build system, and dependencies reported by ./make doctor.

Skip this page if an installed compiler already meets your needs; begin with Start.

Common commands

./make --help
./make all
./make bin
./make env
./make doctor
./make targets
./make install
./make docs

all builds the compiler, standard library, and tools; bin builds the Ny executable. env, doctor, and targets report the active toolchain, dependencies, and cross-target guidance. Use ./make help <command> for the options of a specific command.

Build configuration

Keep separate build directories for different compilers, targets, or instrumentation settings. Use the driver unless you need a CMake option that it does not expose; in that case, record the exact configure arguments and build directory so the result can be reproduced. Do not reuse a build tree after changing toolchain or ABI settings without reconfiguring it.

Build output belongs under build/. Do not edit generated binaries, object files, or cached compiler artifacts as source.

Install and verify

Use the install command for a local installation and confirm the installed compiler can find its core library:

./make install
ny --version
ny -c 'use core
print(1 + 1)'

For prefix selection, uninstall behavior, or cross-compilation options, check ./make help install and ./make help cross rather than copying a command from a different build configuration.

Common failures

FailureCheck
Missing compiler or linkerRun ./make doctor, install the reported host development tools, and rebuild.
Wrong binary after a source changeRun ./make bin from the repository root; use ./make env to check PATH.
Target mismatchCheck ./make targets and the native target matrix before changing ABI flags.
Unexpected cached resultUse the documented cache controls for the failing path; preserve unrelated build data.

See Tooling for format/test commands and Troubleshooting for source and runtime diagnostics.

Next: