LLVM-BUILD(1)
π llvm-build β the LLVM Project Build Utility, but make it a group chat
okay so bestie, welcome to LLVM-BUILD(1), the section 1 manual for the LLVM Project's very own build utility π. It lives in the LLVM manual, and honestly? She's a baddie. Let's get into it.
β¨ NAME β¨
llvm-build β the LLVM Project Build Utility. That's her. That's the whole name. Iconic, no notes. π
π¦ SYNOPSIS π¦
llvm-build [options]
that's it. that's the whole vibe. options only, no positional args, she doesn't need them. π
πΈ DESCRIPTION πΈ
So llvm-build is the tool for working with LLVM projects that use the LLVMBuild system to describe their components. If your project speaks LLVMBuild, she's your girl. π«Ά
At her core β like, her whole heart, her main character energy β llvm-build is responsible for loading, verifying, and manipulating the project's component data. Literally that's her job. That's the assignment and she ate. π₯
And why does she exist? She's primarily designed for use in implementing build systems and tools which need access to the project structure information. So she's not really out here for casual vibes β she's the behind-the-scenes bestie making your build system work. iykyk. β¨
π OPTIONS π
okay here's the menu, and bestie we are going through every single one. no skips, no skimming, periodt.
-h,--helpβ print the builtin program help. your classic "wait what does this do again" button π--source-root=PATHβ if you give her this, she'll load the project at the given source root PATH. If you don't give it? She infers where the project sources live from the location of thellvm-buildscript itself. she's smart like that. π§--print-treeβ print the component tree for the project. look at the whole family tree, bestie π--write-library-tableβ write out the C++ fragment which defines the components, library names, and required libraries. This C++ fragment is built intollvm-config|llvm-configin order to provide clients with the list of required libraries for arbitrary component combinations. yes it's giving compiler internals, slay π--write-llvmbuildβ write out newLLVMBuild.txtfiles based on the loaded components. Super useful for auto-upgrading the schema of the files. Now listen:llvm-buildwill try, to a limited extent, to preserve the comments that were written in the original source file β although at this time it only preserves block comments that precede the section names in the LLVMBuild files. so don't come for her about your inline comments, she's doing her best π--write-cmake-fragmentβ write out the LLVMBuild in the form of a CMake fragment, so it can easily be consumed by the CMake based build system. Heads up tho: the exact contents and format of this file are closely tied to how LLVMBuild is integrated with CMake β see LLVM's top-levelCMakeLists.txt. so if you mess with one, you mess with the other. they're bonded fr fr π«Ά--write-make-fragmentβ write out the LLVMBuild in the form of a Makefile fragment, so it can easily be consumed by a Make based build system. Same energy as above: the exact contents and format of this file are closely tied to how LLVMBuild is integrated with the Makefiles β see LLVM'sMakefile.rules. π--llvmbuild-source-root=PATHβ if given, expect theLLVMBuildfiles for the project to be rooted at the given path, instead of inside the source tree itself. This option is primarily designed for use in conjunction with--write-llvmbuildto test changes to LLVMBuild schema. it's the testing-bestie of--write-llvmbuild, they come as a pair π
β EXIT STATUS β
llvm-build exits with 0 if the operation was successful. Otherwise, it will exit with a non-zero value. (yes, the original says "exist" instead of "exit" β she's a little typo-coded, we still love her π)
So like: 0 = we ate. non-zero = something went wrong, check yourself. π
π«Ά AUTHOR π«Ά
Maintained by the LLVM Team (https://llvm.org/). they're the parents. they keep her fed. π
π COPYRIGHT π
2003-2024, LLVM Project
and that's the whole page bestie!! πβ¨
one last thing β this isLLVM-BUILD(1)from the LLVM manual, version11, dated2024-07-18. go forth and build, my love. periodt π ππ¦
π¦ where this page comes from
- fedora 43: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 43: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 44: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 44: llvm11 11.1.0-14.fc41 Β· NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms