Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit da0521d

Browse files
committed
tests: adjust invalid-so
1 parent 0d81211 commit da0521d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/run-make/invalid-so/rmake.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
// explains that the file exists, but that its metadata is incorrect.
55
// See https://github.com/rust-lang/rust/pull/88368
66

7-
use run_make_support::{dynamic_lib_name, rfs, rustc};
7+
//@ needs-crate-type: dylib
8+
9+
use run_make_support::{dynamic_lib_name, rfs, rustc, target};
810

911
fn main() {
1012
rfs::create_file(dynamic_lib_name("foo"));
1113
rustc()
14+
.target(target())
1215
.crate_type("lib")
1316
.extern_("foo", dynamic_lib_name("foo"))
1417
.input("bar.rs")

0 commit comments

Comments
 (0)