/// Link all librustc rlibs/dylibs into the sysroot location.
///
/// Links those artifacts generated in the given `stage` for `target` produced
/// by `compiler` into `host`'s sysroot.
Link all librustc rlibs/dylibs into the sysroot location.
Link all librustc rlibs / dylibs into the sysroot location .
pub fn rustc_link(build: &Build,
                  target: &str,
                  compiler: &Compiler,
                  host: &str) {
    let target_compiler = Compiler::new(compiler.stage, host);
    let libdir = build.sysroot_libdir(&target_compiler, target);
    let out_dir = build.cargo_out(compiler, Mode::Librustc, target);
    add_to_sysroot(&out_dir, &libdir);
}
pub fn rustc_link ( build : & Build , target : & str , compiler : & Compiler , host : & str ) { let target_compiler = Compiler :: new ( compiler . stage , host ) ; let libdir = build . sysroot_libdir ( & target_compiler , target ) ; let out_dir = build . cargo_out ( compiler , Mode :: Librustc , target ) ; add_to_sysroot ( & out_dir , & libdir ) ; }
Link all librustc rlibs/dylibs into the sysroot location.
Link all librustc rlibs / dylibs into the sysroot location .
build
&Build
target
&str
compiler
&Compiler
host
&str