From 3cabfa46c30dfee99311d2eef77fb9ecdf79765f Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 18 Nov 2025 14:13:18 -0600 Subject: [PATCH] Build for WASM32 and use the LLD linker --- ...ld-for-WASM32-and-use-the-LLD-linker.patch | 23 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 24 insertions(+) create mode 100644 debian/patches/0004-Build-for-WASM32-and-use-the-LLD-linker.patch diff --git a/debian/patches/0004-Build-for-WASM32-and-use-the-LLD-linker.patch b/debian/patches/0004-Build-for-WASM32-and-use-the-LLD-linker.patch new file mode 100644 index 00000000..00b7c725 --- /dev/null +++ b/debian/patches/0004-Build-for-WASM32-and-use-the-LLD-linker.patch @@ -0,0 +1,23 @@ +From: Robert Garrett +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" diff --git a/debian/patches/series b/debian/patches/series index d552fd42..857daaf8 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 0001-Alter-blake3-to-emit-Built-Using-info.patch 0002-Use-pure-Rust-implementation-of-Blake3-parts.patch 0003-Use-mini-as-release-profile.patch +0004-Build-for-WASM32-and-use-the-LLD-linker.patch