2025-10-15 (last update) / (published at) 2025-05-23
To build with JustBuild, use it instead of Make.
The default goal is "all".
Command line for:
justbuild or justbuild alljustbuild cleanjustbuild distcleanjustbuild clean-all or justbuild rebuild or justbuild reall
The purpose of "distclean" is: to execute the "clean" commands and, in addition, to remove deployed files.
Alternatively, in the JustBuild configuration, "clean" can be set to execute "distclean" instead.
Below is a list of example configurations for several editors and IDEs.
For other IDEs, such as
Visual Studio, Visual Studio Code, Qt Creator, CLion, Eclipse, etc.:
change the "custom build" settings in a similar way.
For automatic updating of LSP files,
enable regen4ide or use your preferred tool inside Just Build configuration.
Example:
Start with regen4ide -h and look at
--gen-lsp-file .clangd or --gen-lsp-file compile_flags.txt.
If you are not familiar with clang LSP or just want a quick start,
create a .clangd file with these lines:
CompileFlags:
Compiler: clang++
Add:
- -I/some/dirs/adapted/to/current/projects
- -xc++
Diagnostics:
UnusedIncludes: None
MissingIncludes: None
Alternatively,
use the regen4ide --gen-lsp-file compile_flags.txt variant where no
template is required, but with no room for LSP fine-tuning options.
By default,
regen4ide updates files based on what it finds on disk,
so subsequent runs require no arguments.
Don't forget to update PATH so that all tools can be found at runtime.
'(compile-command "justbuild ")
set makeprg=justbuild
truejustbuild alljustbuild cleanjustbuild clean-alltrueNPP_SAVE
cd $(CURRENT_DIRECTORY)
justbuildGeneral settings:
justbuildProject specific settings:
/ menu / Project Settings / Customize / Enable custom build: true
justbuild alljustbuild cleanjustbuild clean-all(optional) Activate LSP client.
justbuild alljustbuild cleanGeneral settings:
justbuildProject specific settings:
justbuild alljustbuild clean