@@ -25,7 +25,7 @@ use std::process::Command;
25
25
use build_helper:: output;
26
26
use filetime:: FileTime ;
27
27
28
- use util:: { exe, staticlib , libdir, mtime, is_dylib, copy} ;
28
+ use util:: { exe, libdir, mtime, is_dylib, copy} ;
29
29
use { Build , Compiler , Mode } ;
30
30
31
31
/// Build the standard library.
@@ -40,20 +40,6 @@ pub fn std<'a>(build: &'a Build, target: &str, compiler: &Compiler<'a>) {
40
40
let libdir = build. sysroot_libdir ( compiler, target) ;
41
41
let _ = fs:: remove_dir_all ( & libdir) ;
42
42
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
- }
57
43
58
44
// Some platforms have startup objects that may be required to produce the
59
45
// libstd dynamic library, for example.
0 commit comments