aboutsummaryrefslogtreecommitdiff
path: root/goodfile
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-25 20:42:48 -0700
committeriximeow <me@iximeow.net>2024-06-25 20:49:03 -0700
commita79de0575f95fff6f031df8e30703045bbb0037b (patch)
tree9ab53596c80653a82671438505c181db7b22fcc9 /goodfile
parent90f05466987c185bc4c37c8be1c4ebab3b2f548d (diff)
Diffstat (limited to 'goodfile')
-rw-r--r--goodfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/goodfile b/goodfile
index 6a5cb99..92ebdf0 100644
--- a/goodfile
+++ b/goodfile
@@ -1,10 +1,11 @@
-Build.dependencies({"git", "make", "rustc", "cargo"})
+Build.dependencies({"git", "make", "rustc", "cargo", "rustup"})
Step.start("crate")
Step.push("build")
Build.run({"cargo", "build"})
-- and now that some code is conditional on target arch, at least try to build
-- for other architectures even if we might not be able to run on them.
+Build.run({"rustup", "target", "add", "wasm32-wasi"})
Build.run({"cargo", "build", "--no-default-features", "--target", "wasm32-wasi"})
Step.advance("test")