-
Run
python utils/bootstrap.py
to download required dependencies. -
Create a build directory and enter it (
mkdir build
,cd build
). -
Invoke CMake directly with your configuration, for example:
cmake .. -G Ninja \ -DCMAKE_TOOLCHAIN_FILE=../cmake/GccArmNoneEabi.cmake \ -DCMAKE_EXPORT_COMPILE_COMMANDS=YES \ -DBOOTLOADER=YES \ -DPRINTER=MINI \ -DCMAKE_BUILD_TYPE=Debug
See the header of
./CMakeLists.txt
for more command-line options (most of them are one-to-one mapped withbuild.py
's options). -
And invoke
ninja
. It will generate acompile_commands.json
file, that an LSP server can pick up and use to provide autocompletion to your editor (we recommend usingccls
).
This assumes you have sufficient version of cmake and ninja available in your PATH.