Crate compiler_llvm_builder

Source
Expand description

The ZKsync LLVM builder library.

Re-exports§

pub use self::build_type::BuildType;
pub use self::llvm_path::LLVMPath;
pub use self::lock::Lock;
pub use self::platforms::Platform;
pub use self::target_triple::TargetTriple;

Modules§

build_type
The ZKsync LLVM build type.
ccache_variant
Compiler cache variants.
llvm_path
The ZKsync LLVM builder constants.
llvm_project
The LLVM projects to enable during the build.
lock
The ZKsync LLVM builder lock file.
platforms
The ZKsync LLVM builder platforms.
sanitizer
LLVM sanitizers.
target_env
The target environments to build LLVM.
target_triple
The ZKsync LLVM target triples.
utils
The LLVM builder utilities.

Functions§

build
Executes the building of the LLVM framework for the platform determined by the cfg macro. Since cfg is evaluated at compile time, overriding the platform with a command-line argument is not possible. So for cross-platform testing, comment out all but the line to be tested, and perhaps also checks in the platform-specific build method.
checkout
Executes the checkout of the specified branch.
clean
Executes the build artifacts cleaning.
clone
Executes the LLVM repository cloning.
clone_host
Executes the LLVM host repository cloning for stage 1 MUSL builds.