@@ -25,7 +25,7 @@ use std::process::Command;
2525use build_helper:: output;
2626use filetime:: FileTime ;
2727
28- use util:: { exe, staticlib , libdir, mtime, is_dylib, copy} ;
28+ use util:: { exe, libdir, mtime, is_dylib, copy} ;
2929use { Build , Compiler , Mode } ;
3030
3131/// Build the standard library.
@@ -40,20 +40,6 @@ pub fn std<'a>(build: &'a Build, target: &str, compiler: &Compiler<'a>) {
4040 let libdir = build. sysroot_libdir ( compiler, target) ;
4141 let _ = fs:: remove_dir_all ( & libdir) ;
4242 t ! ( fs:: create_dir_all( & libdir) ) ;
43- // FIXME(stage0) remove this `if` after the next snapshot
44- // The stage0 compiler still passes the `-lcompiler-rt` flag to the linker but now `bootstrap`
45- // never builds a `libcopmiler-rt.a`! We'll fill the hole by simply copying stage0's
46- // `libcompiler-rt.a` to where the stage1's one is expected (though we could as well just use
47- // an empty `.a` archive). Note that the symbols of that stage0 `libcompiler-rt.a` won't make
48- // it to the final binary because now `libcore.rlib` also contains the symbols that
49- // `libcompiler-rt.a` provides. Since that rlib appears first in the linker arguments, its
50- // symbols are used instead of `libcompiler-rt.a`'s.
51- if compiler. stage == 0 {
52- let rtlib = & staticlib ( "compiler-rt" , target) ;
53- let src = build. rustc . parent ( ) . unwrap ( ) . parent ( ) . unwrap ( ) . join ( "lib" ) . join ( "rustlib" )
54- . join ( target) . join ( "lib" ) . join ( rtlib) ;
55- copy ( & src, & libdir. join ( rtlib) ) ;
56- }
5743
5844 // Some platforms have startup objects that may be required to produce the
5945 // libstd dynamic library, for example.
0 commit comments