Skip to content

Commit 7d3cbb3

Browse files
committed
rewrite staticlib-blank-lib to rmake
1 parent b01a977 commit 7d3cbb3

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

Diff for: src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ run-make/simd-ffi/Makefile
102102
run-make/split-debuginfo/Makefile
103103
run-make/stable-symbol-names/Makefile
104104
run-make/static-dylib-by-default/Makefile
105-
run-make/staticlib-blank-lib/Makefile
106105
run-make/staticlib-dylib-linkage/Makefile
107106
run-make/symbol-mangling-hashed/Makefile
108107
run-make/symbol-visibility/Makefile

Diff for: tests/run-make/staticlib-blank-lib/Makefile

-6
This file was deleted.

Diff for: tests/run-make/staticlib-blank-lib/rmake.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// In this test, the static library foo is made blank, which used to cause
2+
// a compilation error. As the compiler now returns Ok upon encountering a blank
3+
// staticlib as of #12379, this test checks that compilation is successful despite
4+
// the blank staticlib.
5+
// See https://github.com/rust-lang/rust/pull/12379
6+
7+
use run_make_support::{llvm_ar, rustc, static_lib_name};
8+
9+
fn main() {
10+
llvm_ar().obj_to_ar().output_input(static_lib_name("foo"), "foo.rs").run();
11+
llvm_ar().arg("d").output_input(static_lib_name("foo"), "foo.rs").run();
12+
rustc().input("foo.rs").run();
13+
}

0 commit comments

Comments
 (0)