]> git.lizzy.rs Git - rust.git/commitdiff
rustc: Fix omission of bytecode in staticlibs
authorAlex Crichton <alex@alexcrichton.com>
Thu, 17 Apr 2014 00:29:08 +0000 (17:29 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 17 Apr 2014 00:29:08 +0000 (17:29 -0700)
The name of the file changed awhile back and this spot wasn't updated to
continue ignoring the bytecode from rlibs when copying into staticlibs.

src/librustc/back/archive.rs

index 9b795e6957cf399ba78e6c8435f21b8454e5eebc..27211c4779f8eeae3fbf10fec092b07423b5b1d1 100644 (file)
@@ -104,7 +104,7 @@ pub fn add_native_library(&mut self, name: &str) -> io::IoResult<()> {
     pub fn add_rlib(&mut self, rlib: &Path, name: &str,
                     lto: bool) -> io::IoResult<()> {
         let object = format!("{}.o", name);
-        let bytecode = format!("{}.bc", name);
+        let bytecode = format!("{}.bc.deflate", name);
         let mut ignore = vec!(METADATA_FILENAME, bytecode.as_slice());
         if lto {
             ignore.push(object.as_slice());