C project template wired for CMake, Ninja, clang-cl, and haikal code generation.
- Python 3
- Git
- CMake
- Ninja
- LLVM/Clang with
clang-clonPATH - Visual Studio Build Tools or another environment that provides the MSVC Windows SDK/linker toolchain
On Windows, run the commands from a shell where the MSVC toolchain is available, such as a Visual Studio Developer Command Prompt, or make sure clang-cl, link, cmake, and ninja are all on PATH.
Initialize submodules:
git submodule update --init --recursiveConfigure the debug build:
python bunyan.py config debugBuild debug:
python bunyan.py build debugBuild and run:
python bunyan.py run debugBuild and launch under the debugger:
python bunyan.py debugexe debugOther configs:
python bunyan.py build release
python bunyan.py build reldebugClean generated build directories:
python bunyan.py cleanThe build wrapper compiles extern/haikal, runs haikal.exe --entry src/main.c --meta extern/haikal/src/meta_arena from the repository root, then builds c-init.