Build for WASM32 and use the LLD linker

This commit is contained in:
2025-11-18 14:13:18 -06:00
parent bb99cc8042
commit 3cabfa46c3
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
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"