From 9289c4c88eec135d828ddfb6e7bf0acefcf2227a Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sat, 25 Nov 2023 20:45:46 +0100 Subject: [PATCH] Update rustc example to a new build This build is now able to reach the linker invocation again. It still fails to actually invoke the linker, but that is to be expected as WASI doesn't support spawning external processes. --- examples/rustc.html | 69 ++++++++++++++++++++++++--------------------- examples/wasm-rustc | 2 +- 2 files changed, 38 insertions(+), 33 deletions(-) diff --git a/examples/rustc.html b/examples/rustc.html index 8f477dc..7890b2b 100644 --- a/examples/rustc.html +++ b/examples/rustc.html @@ -15,20 +15,25 @@ body { margin: 0; } + p { + margin: 10px; + }

- Note: the panic at the end is expected. This demo highlights how far `rustc` can get on this polyfill before failing due to other reasons. + Note: the failure to invoke the linker at the end is expected. + WASI doesn't have a way to invoke external processes and rustc doesn't have a builtin linker. + This demo highlights how far `rustc` can get on this polyfill before failing due to other reasons.

diff --git a/examples/wasm-rustc b/examples/wasm-rustc index ac835f6..a5d1c8d 160000 --- a/examples/wasm-rustc +++ b/examples/wasm-rustc @@ -1 +1 @@ -Subproject commit ac835f61214ae9cd8f0e77f6f461e1906689a453 +Subproject commit a5d1c8dd0932fc23b27d3e641b347eaf26b4e6b8