From 11598fa02d6ecf1f9f6f301c275e97775f8321c7 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 28 Oct 2026 15:34:35 -0700 Subject: [PATCH] Expose `/dev` under the WASI host for testing purposes Discovered by running the test suite from a release build which can map all of `/` into the WASI guest. --- Platforms/WASI/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platforms/WASI/__main__.py b/Platforms/WASI/__main__.py index dc1df16f829efe..a2cb428ea40f5f 100644 --- a/Platforms/WASI/__main__.py +++ b/Platforms/WASI/__main__.py @@ -23,6 +23,8 @@ def main(): "--argv0 {ARGV0} " # Map the checkout to / to load the stdlib from /Lib. "--dir {CHECKOUT}::/ " + # For various I/O-related tests. + "--dir /dev " # Flags involving --optimize, --codegen, --debug, --wasm, and --wasi can be kept # in a config file. # We are using such a file to act as defaults in case a user wants to override