-
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 .. -G Ninja \ -DCMAKE_TOOLCHAIN_FILE=../cmake/GccArmNoneEabi.cmake \ -DCMAKE_EXPORT_COMPILE_COMMANDS=YES \ -DBOOTLOADER=YES \ -DPRINTER=MINI \ -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 usingccls).
This assumes you have sufficient version of cmake and ninja available in your PATH.