pub struct LLVMPath {}Expand description
The LLVM path resolver.
Implementations§
Source§impl LLVMPath
impl LLVMPath
Sourcepub const DIRECTORY_LLVM_SOURCE: &'static str = "./llvm/"
pub const DIRECTORY_LLVM_SOURCE: &'static str = "./llvm/"
The LLVM source directory.
Sourcepub const DIRECTORY_LLVM_HOST_SOURCE: &'static str = Self::DIRECTORY_LLVM_SOURCE
pub const DIRECTORY_LLVM_HOST_SOURCE: &'static str = Self::DIRECTORY_LLVM_SOURCE
The LLVM host source directory for stage 1 of multistage MUSL and Emscripten builds.
We use upstream LLVM anyways; re-use the same tree for host and target builds.
Sourcepub const DIRECTORY_EMSDK_SOURCE: &'static str = "./emsdk/"
pub const DIRECTORY_EMSDK_SOURCE: &'static str = "./emsdk/"
The Emscripten SDK source directory.
Sourcepub fn llvm_host_module_llvm() -> Result<PathBuf>
pub fn llvm_host_module_llvm() -> Result<PathBuf>
Returns the path to the llvm stage 1 host LLVM source module directory.
Sourcepub fn llvm_module_llvm() -> Result<PathBuf>
pub fn llvm_module_llvm() -> Result<PathBuf>
Returns the path to the llvm LLVM source module directory.
Sourcepub fn musl_source(name: &str) -> Result<PathBuf>
pub fn musl_source(name: &str) -> Result<PathBuf>
Returns the path to the MUSL source.
Sourcepub fn musl_build(source_directory: &str) -> Result<PathBuf>
pub fn musl_build(source_directory: &str) -> Result<PathBuf>
Returns the path to the MUSL build directory.
Sourcepub fn llvm_build_crt() -> Result<PathBuf>
pub fn llvm_build_crt() -> Result<PathBuf>
Returns the path to the LLVM CRT build directory.
Sourcepub fn llvm_build_host() -> Result<PathBuf>
pub fn llvm_build_host() -> Result<PathBuf>
Returns the path to the LLVM host build directory.
Sourcepub fn llvm_build_final() -> Result<PathBuf>
pub fn llvm_build_final() -> Result<PathBuf>
Returns the path to the LLVM final build directory.
Sourcepub fn musl_target() -> Result<PathBuf>
pub fn musl_target() -> Result<PathBuf>
Returns the path to the MUSL target directory.
Sourcepub fn llvm_target_crt() -> Result<PathBuf>
pub fn llvm_target_crt() -> Result<PathBuf>
Returns the path to the LLVM CRT target directory.
Sourcepub fn llvm_target_host() -> Result<PathBuf>
pub fn llvm_target_host() -> Result<PathBuf>
Returns the path to the LLVM host target directory.
Sourcepub fn llvm_target_final() -> Result<PathBuf>
pub fn llvm_target_final() -> Result<PathBuf>
Returns the path to the LLVM final target directory.
Sourcepub fn llvm_module_compiler_rt() -> Result<PathBuf>
pub fn llvm_module_compiler_rt() -> Result<PathBuf>
Returns the path to the LLVM compiler builtin target directory.
Sourcepub fn llvm_target_compiler_rt() -> Result<PathBuf>
pub fn llvm_target_compiler_rt() -> Result<PathBuf>
Returns the path to the LLVM compiler-rt target directory.
Sourcepub fn llvm_build_compiler_rt() -> Result<PathBuf>
pub fn llvm_build_compiler_rt() -> Result<PathBuf>
Returns the path to the LLVM compiler-rt build directory.
Sourcepub fn llvm_target_final_bin(target_env: TargetEnv) -> Result<PathBuf>
pub fn llvm_target_final_bin(target_env: TargetEnv) -> Result<PathBuf>
Returns the path to the LLVM target final bin path.