Module bootstrap::core::build_steps::llvm
source · Expand description
Compilation of native dependencies like LLVM.
Native projects like LLVM unfortunately aren’t suited just yet for compilation in build scripts that Cargo has. This is because the compilation takes a very long time but also because we don’t want to compile LLVM 3 times as part of a normal bootstrap (we want it cached).
LLVM and compiler-rt are essentially just wired up to everything else to ensure that they’re always in place if needed.
Structs§
- LdFlags 🔒Linker flags to pass to LLVM’s CMake invocation.
Enums§
Functions§
- This retrieves the LLVM sha we want to use, according to git history.
- get_var 🔒
- Returns whether the CI-found LLVM is currently usable.
- Returns true if we’re running in CI with modified LLVM (and thus can’t download it)
- This returns whether we’ve already previously built LLVM.
- Returns sanitizers available on a given target.