B2(1)
π B2(1) β software build tool, bestie edition π
okay so this is the manual page for B2(1), category User Commands, and it is literally the software build tool. The version vibe check at the top is B2 5.2.1 (OS=LINUX, jobs=4) β write that down, bestie π«Ά
β¨ NAME β¨
B2 β software build tool. that's the whole name section, short and iconic π
πΈ DESCRIPTION πΈ
B2 5.2.1 (OS=LINUX, jobs=4)
Project-specific help:
Project has jamfile at Jamroot
Usage:
b2 [options] [properties] [install|stage]
Builds and installs Boost. periodt π₯
π― Targets and Related Options π―
installβ install headers and compiled library files to the configured locations (below). (the raw page literally has a=======divider right here, so yes, I kept that detail, bestie π)--prefix=<PREFIX>β install architecture independent files here. Default:C:\Booston Windows. Default:/usr/localon Unix, Linux, etc.--exec-prefix=<EPREFIX>β install architecture dependent files here. Default:<PREFIX>--libdir=<LIBDIR>β install library files here. Default:<EPREFIX>/lib--includedir=<HDRDIR>β install header files here. Default:<PREFIX>/include--cmakedir=<CMAKEDIR>β install CMake configuration files here. Default:<LIBDIR>/cmake--no-cmake-configβ do not install CMake configuration files.stageβ build and install only compiled library files to the stage directory. (and the raw page literally has a=====divider here too π« )--stagedir=<STAGEDIR>β install library files here. Default:./stage
π¦ Other Options π¦
--build-type=<type>β build the specified pre-defined set of variations of the libraries. Note, that which variants get built depends on what each library supports.-- minimal --β (default) builds a minimal set of variants. On Windows, these are static multithreaded libraries indebugandreleasemodes, using shared runtime. On Linux, these are static and shared multithreaded libraries inreleasemode.-- complete --β build all possible variations.
--build-dir=DIRβ build in this location instead of building within the distribution tree. Recommended! (the page literally says Recommended!, so yeah, take the hint π)--show-librariesβ display the list of Boost libraries that require build and installation steps, and then exit.--layout=<layout>β determine whether to choose library names and header locations such that multiple versions of Boost or multiple compilers can be used on the same system.-- versioned --β names of boost binaries include the Boost version number, name and version of the compiler and encoded build properties. Boost headers are installed in a subdirectory of<HDRDIR>whose name contains the Boost version number.-- tagged --β names of boost binaries include the encoded build properties such asvariantandthreading, but do not including compiler name and version, or Boost version. This option is useful if you build several variants of Boost, using the same compiler. (yes, βdo not includingβ is exactly what the page says β Iβm not fixing the lore π)-- system --β binaries names do not include the Boost version number or the name and version number of the compiler. Boost headers are installed directly into<HDRDIR>. This option is intended for system integrators building distribution packages.- the default value is
'versioned'on Windows, and'system'on Unix.
--buildid=IDβ add the specified ID to the name of built libraries. The default is to not add anything.--python-buildid=IDβ add the specified ID to the name of built libraries that depend on Python. The default is to not add anything. This ID is added in addition to--buildid.--helpβ this message.--with-<library>β build and install the specified<library>. If this option is used, only libraries specified using this option will be built.--without-<library>β do not build, stage, or install the specified<library>. By default, all libraries are built.
π§ Properties π§
toolset=toolsetβ indicate the toolset to build with.variant=debug|releaseβ select the build variant.link=static|sharedβ whether to build static or shared libraries.threading=single|multiβ whether to build single or multithreaded binaries.runtime-link=static|sharedβ whether to link to static or shared C and C++ runtime.
π General command line usage π
b2 [options] [properties] [targets]
Options, properties and targets can be specified in any order. slay, flexible queen behavior β¨
π₯ Important Options π₯
--cleanβ remove targets instead of building.-aβ rebuild everything.-nβ don't execute the commands, only print them.-d+2β show commands as they are executed.-d0β suppress all informational messages.-qβ stop at first error.--reconfigureβ rerun all configuration checks.--durations[=N]β report topNtargets by execution time.--debug-configurationβ diagnose configuration.--debug-buildingβ report which targets are built with what properties.--debug-generatorβ diagnose generator search/execution.
π Further Help π
the following options can be used to obtain additional documentation.
--help-optionsβ print more obscure command line options.--help-internalβ B2 implementation details.--help-doc-optionsβ implementation details doc formatting.
...found 1 target...
okay thatβs the whole page, bestie π«Ά source/version vibes: B2 5.2.1 (OS=LINUX, jobs=4), dated September 2025, manual name B2(1). bye and happy building ππ
π¦ where this page comes from
- ubuntu questing: libboost1.88-tools-dev 1.88.0-1.4ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms