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.
Auto Trait Implementations§
impl Freeze for LLVMPath
impl RefUnwindSafe for LLVMPath
impl Send for LLVMPath
impl Sync for LLVMPath
impl Unpin for LLVMPath
impl UnwindSafe for LLVMPath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more