aboutsummaryrefslogtreecommitdiff
path: root/tests/compiletest/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compiletest/mod.rs')
-rw-r--r--tests/compiletest/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/compiletest/mod.rs b/tests/compiletest/mod.rs
index f4e26c1..cc3632d 100644
--- a/tests/compiletest/mod.rs
+++ b/tests/compiletest/mod.rs
@@ -34,7 +34,11 @@ pub fn contains_panic(name: &str, code: &str) -> bool {
.arg("--out-dir")
.arg(tempdir.path())
.arg("--extern")
- .arg("no_panic=target/debug/libno_panic.so")
+ .arg(format!(
+ "no_panic=target/debug/{prefix}no_panic.{extension}",
+ prefix = std::env::consts::DLL_PREFIX,
+ extension = std::env::consts::DLL_EXTENSION,
+ ))
.status()
.expect("failed to execute rustc");
assert!(status.success());