mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
Cleanup fixed issue #10734 workaround
This commit is contained in:
@@ -91,7 +91,7 @@ pub fn open(sess: &'a Session, dst: Path) -> Archive<'a> {
|
||||
pub fn read(&self, file: &str) -> Vec<u8> {
|
||||
// Apparently if "ar p" is used on windows, it generates a corrupt file
|
||||
// which has bad headers and LLVM will immediately choke on it
|
||||
if cfg!(windows) && cfg!(windows) { // FIXME(#10734) double-and
|
||||
if cfg!(windows) {
|
||||
let loc = TempDir::new("rsar").unwrap();
|
||||
let archive = os::make_absolute(&self.dst);
|
||||
run_ar(self.sess, "x", Some(loc.path()), [&archive,
|
||||
|
||||
Reference in New Issue
Block a user