CSBUILD(1)
π CSBUILD(1) β the manual page, bestie edition π
okay so this is the User Commands manual page for csbuild, and yes it slaps. it's the tool that plugs your static analyzers straight into your build process so you don't have to sit there doing it by hand like a Victorian child. iconic behavior honestly β¨
πΈ NAME πΈ
csbuild β the tool for plugging static analyzers into the build process. that's it, that's the whole vibe check. π¦
β¨ SYNOPSIS β¨
like, literally just look at it:
usage: csbuild [-h] -c BUILD_CMD [-g GIT_COMMIT_RANGE] [--git-bisect]
[--added-exit-code ADDED_EXIT_CODE] [--base-fail-exit-code
BASE_FAIL_EXIT_CODE] [--print-current] [--no-print-current]
[--print-added] [--no-print-added] [--print-fixed]
[--no-print-fixed] [--clean] [--no-clean] [--cswrap-timeout
CSWRAP_TIMEOUT] [--color] [--no-color] [--gen-travis-yml]
[--install INSTALL] [--prep-cmd PREP_CMD] [--build-dir BUILD_DIR]
[-w GCC_WARNING_LEVEL] [--gcc-add-flag GCC_ADD_FLAG]
[--gcc-add-c-only-flag GCC_ADD_C_ONLY_FLAG]
[--gcc-add-cxx-only-flag GCC_ADD_CXX_ONLY_FLAG] [--gcc-del-flag
GCC_DEL_FLAG] [--clang-add-flag CLANG_ADD_FLAG] [-U
EMBED_CONTEXT] [--version]
there's also a <hotpink>usage:</hotpink> line up in DESCRIPTION that gives you the whole argument dump, so basically you're never lost. π«Ά
π DESCRIPTION π
the usage line, refresh, because we love a recap:
usage: csbuild [-h] -c BUILD_CMD [-g GIT_COMMIT_RANGE] [--git-bisect]
[--added-exit-code ADDED_EXIT_CODE] [--base-fail-exit-code
BASE_FAIL_EXIT_CODE] [--print-current] [--no-print-current]
[--print-added] [--no-print-added] [--print-fixed]
[--no-print-fixed] [--clean] [--no-clean] [--cswrap-timeout
CSWRAP_TIMEOUT] [--color] [--no-color] [--gen-travis-yml]
[--install INSTALL] [--prep-cmd PREP_CMD] [--build-dir BUILD_DIR]
[-w GCC_WARNING_LEVEL] [--gcc-add-flag GCC_ADD_FLAG]
[--gcc-add-c-only-flag GCC_ADD_C_ONLY_FLAG]
[--gcc-add-cxx-only-flag GCC_ADD_CXX_ONLY_FLAG] [--gcc-del-flag
GCC_DEL_FLAG] [--clang-add-flag CLANG_ADD_FLAG] [-U
EMBED_CONTEXT] [--version]
π§ optional arguments (yes, all of them, i'm not skipping a single one)
-h,--helpβ prints this help message and dips. the classic. π-cBUILD_CMD,--build-cmdBUILD_CMD β the shell command used to build the sources. it runs in@BUILDDIR@, which lowkey defaults to$PWDif you don't pass--build-dir. also@SRCDIR@expands to$PWDat the timecsbuildwas invoked. ποΈ-gGIT_COMMIT_RANGE,--git-commit-rangeGIT_COMMIT_RANGE β range of git revisions for a differential scan, in the formatOLD_REV..NEW_REV. this is your diff queen era. π--git-bisectβ if a new defect gets added, usegit-bisectto identify the cause. WARNING: the given command must (re)compile all sources for this option to work! no cap, it's serious. π--added-exit-codeADDED_EXIT_CODE β exit code to return if there's any defect added in the new version (default:7). πͺ--base-fail-exit-codeBASE_FAIL_EXIT_CODE β exit code to return if the base scan fails (default:0). π--print-currentβ print all defects in the current version (this is the default unless-gis given). WARNING: the given command must (re)compile all sources for this option to work! β οΈ--no-print-currentβ disables--print-current. that's the whole gig. π--print-addedβ print defects added in the new version (this is the default if-gis given). π--no-print-addedβ disables--print-added. πββοΈ--print-fixedβ print defects fixed in the new version. WARNING: the given command must (re)compile all sources for this option to work! π οΈ--no-fixed... wait no, it's--no-print-fixedβ disables--print-fixed. π«--cleanβ clean the temporary directory with results (and@BUILDDIR@) on exit. this is the default, bestie. π§Ή--no-cleanβ disables--clean. keep that mess, i guess. ποΈ--cswrap-timeoutCSWRAP_TIMEOUT β maximal amount of time in seconds taken by analysis of a single module (default:30). tick tock β°--colorβ use colorized console output (this is the default if connected to a tty). π--no-colorβ disables--color. monochrome moment. π€--gen-travis-ymlβ generate the.travis.ymlfile for Travis CI (requires--install). nostalgic fr fr. π--installINSTALL β space-separated list of packages to install with--gen-travis-yml. π¦--prep-cmdPREP_CMD β shell command to run before the build. it runs in@BUILDDIR@, which defaults to$PWDif--build-dirisn't specified. and@SRCDIR@expands to$PWDat the time ofcsbuild's invocation. prep queen π§΄--build-dirBUILD_DIR β directory to be created to run the prep and build commands in (optional). if you don't specify it, the commands run in$PWD.@BUILDDIR@in the operand of--build-cmdand--prep-cmdexpands to the--build-diroperand converted to an absolute path. use--no-cleanto preserve@BUILDDIR@on exit. literally the main character of directories π π-wGCC_WARNING_LEVEL,--gcc-warning-levelGCC_WARNING_LEVEL β adjust the GCC warning level.-w0means no additional warnings,-w1appends-Walland-Wextra, and-w2enables some other useful warnings (default:2). volume knob for warnings ππ--gcc-add-flagGCC_ADD_FLAG β append the given compiler flag when invokinggcc(can be used multiple times). β--gcc-add-c-only-flagGCC_ADD_C_ONLY_FLAG β append the given compiler flag when invokinggccfor C (can be used multiple times). π ²--gcc-add-cxx-only-flagGCC_ADD_CXX_ONLY_FLAG β append the given compiler flag when invokinggccfor C++ (can be used multiple times). π ²π ²--gcc-del-flagGCC_DEL_FLAG β drop the given compiler flag when invokinggcc(can be used multiple times). bye bestie π--clang-add-flagCLANG_ADD_FLAG β append the given flag when invoking the clang static analyzer (can be used multiple times). π§-UEMBED_CONTEXT,--embed-contextEMBED_CONTEXT β embed a number of lines of context from the source file for the key event (default:3). context is everything, periodt. π--versionβ print the version ofcsbuildand exit. the flex. π
i would never gatekeep this from you, so: every warning above is load-bearing. if an option says the given command must (re)compile all sources, that is not a suggestion, that is the whole assignment. πβ¨
and that's the page, bestie π«Ά β this was csbuild from csmock-3.8.7-1.el9, dated June 2026. manual page CSBUILD(1), user commands section, signing off. slay, stay analyzed, and don't forget to --no-clean if you want the receipts ππ
π¦ where this page comes from
- epel 9: csbuild 3.8.7-1.el9 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms