Skip to content

Commit

Permalink
try to make this cross-platform safe
Browse files Browse the repository at this point in the history
  • Loading branch information
qmx committed Oct 21, 2018
1 parent 7dd0e38 commit 90132e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ use std::io::{self, BufReader};
use std::path::{Path, PathBuf};
use std::process::{Child, Command, ExitStatus, Output, Stdio};
use std::str;
use std::env::consts::DLL_EXTENSION;

use extract_gdb_version;
use is_android_gdb_target;
Expand Down Expand Up @@ -1577,7 +1578,9 @@ impl<'test> TestCx<'test> {
rustc.arg(format!("{}={}/lib{}",
aux_crate.key,
aux_dir.display(),
&aux_crate.value.replace(".rs", ".so").replace("-","_")));
aux_crate.value.replace(".rs", &format!(".{}", DLL_EXTENSION))
.replace("-","_")
));
}

self.compose_and_run(
Expand Down

0 comments on commit 90132e0

Please sign in to comment.