pub struct GccTargetPair {
host: TargetSelection,
target: TargetSelection,
}Expand description
GCC cannot cross-compile from a single binary to multiple targets. So we need to have a separate GCC dylib for each (host, target) pair. We represent this explicitly using this struct.
Fields§
§host: TargetSelectionTarget on which the libgccjit.so dylib will be executed.
target: TargetSelectionTarget for which the libgccjit.so dylib will generate assembly.
Implementations§
Source§impl GccTargetPair
impl GccTargetPair
Sourcepub fn for_native_build(target: TargetSelection) -> Self
pub fn for_native_build(target: TargetSelection) -> Self
Create a target pair for a GCC that will run on target and generate assembly for target.
Sourcepub fn for_target_pair(host: TargetSelection, target: TargetSelection) -> Self
pub fn for_target_pair(host: TargetSelection, target: TargetSelection) -> Self
Create a target pair for a GCC that will run on host and generate assembly for target.
This may be cross-compilation if host != target.
pub fn host(&self) -> TargetSelection
pub fn target(&self) -> TargetSelection
Trait Implementations§
Source§impl Clone for GccTargetPair
impl Clone for GccTargetPair
Source§fn clone(&self) -> GccTargetPair
fn clone(&self) -> GccTargetPair
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GccTargetPair
impl Debug for GccTargetPair
Source§impl Display for GccTargetPair
impl Display for GccTargetPair
Source§impl Hash for GccTargetPair
impl Hash for GccTargetPair
Source§impl Ord for GccTargetPair
impl Ord for GccTargetPair
Source§impl PartialEq for GccTargetPair
impl PartialEq for GccTargetPair
Source§impl PartialOrd for GccTargetPair
impl PartialOrd for GccTargetPair
impl Copy for GccTargetPair
impl Eq for GccTargetPair
impl StructuralPartialEq for GccTargetPair
Auto Trait Implementations§
impl Freeze for GccTargetPair
impl RefUnwindSafe for GccTargetPair
impl Send for GccTargetPair
impl Sync for GccTargetPair
impl Unpin for GccTargetPair
impl UnwindSafe for GccTargetPair
Blanket Implementations§
§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
§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)
clone_to_uninit)§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes