Build for WASM32 and use the LLD linker
This commit is contained in:
23
debian/patches/0004-Build-for-WASM32-and-use-the-LLD-linker.patch
vendored
Normal file
23
debian/patches/0004-Build-for-WASM32-and-use-the-LLD-linker.patch
vendored
Normal 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"
|
||||||
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@@ -1,3 +1,4 @@
|
|||||||
0001-Alter-blake3-to-emit-Built-Using-info.patch
|
0001-Alter-blake3-to-emit-Built-Using-info.patch
|
||||||
0002-Use-pure-Rust-implementation-of-Blake3-parts.patch
|
0002-Use-pure-Rust-implementation-of-Blake3-parts.patch
|
||||||
0003-Use-mini-as-release-profile.patch
|
0003-Use-mini-as-release-profile.patch
|
||||||
|
0004-Build-for-WASM32-and-use-the-LLD-linker.patch
|
||||||
|
|||||||
Reference in New Issue
Block a user