use crate::OsStr;
use std::process::Command;
pub trait Linker {
fn name(&self) -> &'static OsStr;
fn default_output(&self) -> &'static OsStr {
OsStr::new("a.out")
}
#[allow(unused)]
fn preproc(&self, cmd: &mut Command) {}
fn obj(&self, cmd: &mut Command, path: &OsStr) {
cmd.arg(path);
}
fn output(&self, cmd: &mut Command, path: &OsStr);
fn lib(&self, cmd: &mut Command, path: &OsStr);
fn path(&self, cmd: &mut Command, path: &OsStr);
}