pub struct CrossCompilerConfig {
pub cc: String,
pub cxx: String,
pub ar: String,
pub ld: String,
pub ranlib: String,
pub strip: String,
}Expand description
Cross-compilation tool paths for a specific target.
Fields§
§cc: StringPath to the C compiler.
cxx: StringPath to the C++ compiler.
ar: StringPath to the archiver.
ld: StringPath to the linker.
ranlib: StringPath to the ranlib tool.
strip: StringPath to the strip tool.
Implementations§
Source§impl CrossCompilerConfig
impl CrossCompilerConfig
Sourcepub fn for_target(target: &str) -> Self
pub fn for_target(target: &str) -> Self
Produce a cross-compiler configuration with sensible defaults for the given target triple. Uses GNU-style tool naming conventions.
Sourcepub fn to_env_vars(&self) -> BTreeMap<String, String>
pub fn to_env_vars(&self) -> BTreeMap<String, String>
Convert the configuration into environment variable key-value pairs suitable for passing to a build system.
Trait Implementations§
Source§impl Clone for CrossCompilerConfig
impl Clone for CrossCompilerConfig
Source§fn clone(&self) -> CrossCompilerConfig
fn clone(&self) -> CrossCompilerConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CrossCompilerConfig
impl RefUnwindSafe for CrossCompilerConfig
impl Send for CrossCompilerConfig
impl Sync for CrossCompilerConfig
impl Unpin for CrossCompilerConfig
impl UnwindSafe for CrossCompilerConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)