Details
- Reviewers
phosek beanz MaskRay jdoerfert - Commits
- rGd396d09fc227: Document LLVM_ENABLE_RUNTIMES
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Probably also worth noting it builds the builtins separately from the other runtimes to preserve correct dependency ordering.
The goal of the runtimes build initially was to preserve correct dependency ordering when building. You need the just-built clang to build the builtins libraries, and you need the builtins libraries before you can build any fully linked dynamic libraries or executables. So when you use the runtimes build the build ordering is clang -> compiler-rt builtins only -> everything else.
OpenMP also relies on the just build clang to create the (GPU) device runtimes. That is why our build with offloading support is based on the runtimes and not project.
llvm/docs/CMake.rst | ||
---|---|---|
487 | LLVM libc is also supported, see https://github.com/llvm/llvm-project/blob/9f7873784dcce4177a759fc657b267d2f189bcf0/runtimes/CMakeLists.txt#L5 You can also use LLVM_ENABLE_RUNTIMES=all to build all supported runtimes. |