pub struct LinkerConfig {
pub linker_path: String,
pub linker_script: Option<String>,
pub search_paths: Vec<String>,
pub flags: Vec<String>,
}Expand description
Linker configuration for a specific target architecture.
Fields§
§linker_path: StringPath to the linker binary.
linker_script: Option<String>Optional path to a custom linker script.
search_paths: Vec<String>Library search paths passed via -L.
flags: Vec<String>Additional linker flags.
Implementations§
Source§impl LinkerConfig
impl LinkerConfig
Sourcepub fn for_target(target: &str) -> Self
pub fn for_target(target: &str) -> Self
Produce a linker configuration with sensible defaults for the given target triple.
Trait Implementations§
Source§impl Clone for LinkerConfig
impl Clone for LinkerConfig
Source§fn clone(&self) -> LinkerConfig
fn clone(&self) -> LinkerConfig
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 LinkerConfig
impl RefUnwindSafe for LinkerConfig
impl Send for LinkerConfig
impl Sync for LinkerConfig
impl Unpin for LinkerConfig
impl UnwindSafe for LinkerConfig
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)