Skip to content

Commit 459dae5

Browse files
committed
wasi is too strange of a target, remove it for now
1 parent ee2ee6c commit 459dae5

File tree

8 files changed

+1
-121
lines changed

8 files changed

+1
-121
lines changed

src/tools/miri/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ degree documented below):
220220
- `solaris` / `illumos`: maintained by @devnexen. Supports the entire test suite.
221221
- `freebsd`: maintained by @YohDeadfall and @LorrensP-2158466. Supports the entire test suite.
222222
- `android`: **maintainer wanted**. Support very incomplete, but a basic "hello world" works.
223-
- `wasi`: **maintainer wanted**. Support very incomplete, but a basic "hello world" works.
224223
- For targets on other operating systems, Miri might fail before even reaching the `main` function.
225224

226225
However, even for targets that we do support, the degree of support for accessing platform APIs

src/tools/miri/ci/ci.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ case $HOST_TARGET in
153153
BASIC="empty_main integer heap_alloc libc-mem vec string btreemap" # ensures we have the basics: pre-main code, system allocator
154154
UNIX="hello panic/panic panic/unwind concurrency/simple atomic libc-mem libc-misc libc-random env num_cpus" # the things that are very similar across all Unixes, and hence easily supported there
155155
TEST_TARGET=aarch64-linux-android run_tests_minimal $BASIC $UNIX time hashmap random thread sync concurrency epoll eventfd
156-
TEST_TARGET=wasm32-wasip2 run_tests_minimal $BASIC hello wasm
157156
TEST_TARGET=wasm32-unknown-unknown run_tests_minimal no_std empty_main wasm # this target doesn't really have std
158157
TEST_TARGET=thumbv7em-none-eabihf run_tests_minimal no_std
159158
;;

src/tools/miri/src/shims/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl<'tcx> EnvVars<'tcx> {
5151
} else if ecx.tcx.sess.target.os == "windows" {
5252
EnvVars::Windows(WindowsEnvVars::new(ecx, env_vars)?)
5353
} else {
54-
// Used e.g. for wasi
54+
// For "none" targets (i.e., without an OS).
5555
EnvVars::Uninit
5656
};
5757
ecx.machine.env_vars = env_vars;

src/tools/miri/src/shims/foreign_items.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
102102
let this = self.eval_context_ref();
103103
match this.tcx.sess.target.os.as_ref() {
104104
os if this.target_os_is_unix() => shims::unix::foreign_items::is_dyn_sym(name, os),
105-
"wasi" => shims::wasi::foreign_items::is_dyn_sym(name),
106105
"windows" => shims::windows::foreign_items::is_dyn_sym(name),
107106
_ => false,
108107
}
@@ -846,10 +845,6 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
846845
shims::unix::foreign_items::EvalContextExt::emulate_foreign_item_inner(
847846
this, link_name, abi, args, dest,
848847
),
849-
"wasi" =>
850-
shims::wasi::foreign_items::EvalContextExt::emulate_foreign_item_inner(
851-
this, link_name, abi, args, dest,
852-
),
853848
"windows" =>
854849
shims::windows::foreign_items::EvalContextExt::emulate_foreign_item_inner(
855850
this, link_name, abi, args, dest,

src/tools/miri/src/shims/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ mod math;
88
#[cfg(all(unix, feature = "native-lib"))]
99
mod native_lib;
1010
mod unix;
11-
mod wasi;
1211
mod windows;
1312
mod x86;
1413

src/tools/miri/src/shims/tls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ impl<'tcx> TlsDtorsState<'tcx> {
253253
}
254254
_ => {
255255
// No TLS dtor support.
256-
// FIXME: should we do something on wasi?
257256
break 'new_state Done;
258257
}
259258
}

src/tools/miri/src/shims/wasi/foreign_items.rs

Lines changed: 0 additions & 110 deletions
This file was deleted.

src/tools/miri/src/shims/wasi/mod.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)