Skip to content

Commit 033d536

Browse files
committed
silly run with no arg + comment change
1 parent 14ece82 commit 033d536

File tree

2 files changed

+3
-9
lines changed
  • src/tools/run-make-support/src
  • tests/run-make/no-cdylib-as-rdylib

2 files changed

+3
-9
lines changed

src/tools/run-make-support/src/rustc.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,6 @@ impl Rustc {
164164
self
165165
}
166166

167-
/// Favours dynamic linking over static linking in rustc. Equivalent to `-C prefer-dynamic``.
168-
pub fn prefer_dynamic(&mut self) -> &mut Self {
169-
self.cmd.arg("-Cprefer-dynamic");
170-
self
171-
}
172-
173167
/// Add an extra argument to the linker invocation, via `-Clink-arg`.
174168
pub fn link_arg(&mut self, link_arg: &str) -> &mut Self {
175169
self.cmd.arg(format!("-Clink-arg={link_arg}"));
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This test produces an rlib and a cdylib from bar.rs.
22
// Then, foo.rs attempts to link to the bar library.
3-
// If the test works correctly, rustc will favour the rlib and ignore the cdylib.
3+
// If the test passes, that means rustc favored the rlib and ignored the cdylib.
44
// If the test fails, that is because the cdylib was picked, which does not export
55
// any Rust symbols.
66
// See https://github.com/rust-lang/rust/pull/113695
@@ -11,6 +11,6 @@ use run_make_support::{run, rustc};
1111

1212
fn main() {
1313
rustc().input("bar.rs").crate_type("rlib").crate_type("cdylib").run();
14-
rustc().input("foo.rs").prefer_dynamic().run();
15-
run();
14+
rustc().input("foo.rs").arg("-Cprefer-dynamic").run();
15+
run("foo");
1616
}

0 commit comments

Comments
 (0)