Files
another-boids-in-rust/debian/patches/0004-Build-for-WASM32-and-use-the-LLD-linker.patch

24 lines
595 B
Diff

From: Robert Garrett <robertgarrett404@gmail.com>
Date: Tue, 18 Nov 2025 14:11:39 -0600
Subject: Build for WASM32 and use the LLD linker
I'm overriding the build to only produce WASM32 binaries.
---
.cargo/config.toml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.cargo/config.toml b/.cargo/config.toml
index b651240..ef7bb6b 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -1,5 +1,9 @@
+[build]
+target = "wasm32-unknown-unknown"
+
[target.wasm32-unknown-unknown]
runner = "wasm-server-runner"
+linker = "lld"
[source.crates-io]
replace-with = "vendored-sources"