Skip to content

Commit 276e578

Browse files
committed
Migrate wasm-override-linker to rmake
1 parent 6c06098 commit 276e578

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,4 @@ run-make/unstable-flag-required/Makefile
199199
run-make/use-suggestions-rust-2018/Makefile
200200
run-make/used-cdylib-macos/Makefile
201201
run-make/wasm-exceptions-nostd/Makefile
202-
run-make/wasm-override-linker/Makefile
203202
run-make/x86_64-fortanix-unknown-sgx-lvi/Makefile

tests/run-make/wasm-override-linker/Makefile

-16
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// How to run this
2+
// $ RUSTBUILD_FORCE_CLANG_BASED_TESTS=1 ./x.py test tests/run-make/wasm-override-linker/
3+
4+
//@ needs-force-clang-based-tests
5+
6+
use run_make_support::{env_var, rustc, target};
7+
8+
fn main() {
9+
if matches!(target().as_str(), "wasm32-unknown-unknown" | "wasm64-unknown-unknown") {
10+
rustc()
11+
.input("foo.rs")
12+
.crate_type("cdylib")
13+
.target(&target())
14+
.linker(&env_var("CLANG"))
15+
.run();
16+
}
17+
}

0 commit comments

Comments
 (0)