fix the test · rust-lang/rust@91a3f04 (original) (raw)
File tree
1 file changed
lines changed
- tests/run-make/c-link-to-rust-staticlib
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -8,11 +8,7 @@ use std::fs; | ||
8 | 8 | |
9 | 9 | fn main() { |
10 | 10 | rustc().input("foo.rs").run(); |
11 | -cc().input("bar.c") | |
12 | -.input(static_lib("foo")) | |
13 | -.out_exe("bar") | |
14 | -.args(&extra_c_flags()) | |
15 | -.run(); | |
11 | +cc().input("bar.c").input(static_lib("foo")).out_exe("bar").args(&extra_c_flags()).run(); | |
16 | 12 | run("bar"); |
17 | 13 | fs::remove_file(static_lib("foo")); |
18 | 14 | run("bar"); |