-
Run
python utils/bootstrap.pyto download required dependencies. -
Create a build directory and enter it (
mkdir build,cd build). -
Invoke CMake directly with your configuration, for example:
cmake .. --preset mini \ -G Ninja \ -DCMAKE_EXPORT_COMPILE_COMMANDS=YES \ -DBOOTLOADER=YES \ -DCMAKE_BUILD_TYPE=DebugSee the header of
./CMakeLists.txtfor more command-line options (most of them are one-to-one mapped withbuild.py's options). -
And invoke
ninja. It will generate acompile_commands.jsonfile, that an LSP server can pick up and use to provide autocompletion to your editor (we recommend usingclangd). -
Install some spell checker (optional but recommended).
This assumes you have sufficient version of cmake and ninja available in your PATH.