rustc_codegen_ssa::back::link

Function add_apple_link_args

Source
fn add_apple_link_args(
    cmd: &mut dyn Linker,
    sess: &Session,
    flavor: LinkerFlavor,
)
Expand description

We need to communicate five things to the linker on Apple/Darwin targets:

  • The architecture.
  • The operating system (and that it’s an Apple platform).
  • The environment / ABI.
  • The deployment target.
  • The SDK version.