Skip to content

Commit 48adbb8

Browse files
committed
feat: linker
1 parent c7be3d6 commit 48adbb8

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[target.x86_64-unknown-linux-gnu]
2+
# Workaround for __rust_probestack linking issue with wasmer on Linux
3+
# Use gcc as linker with the BFD linker instead of LLD
4+
linker = "gcc"
5+
rustflags = [
6+
"-C", "link-arg=-fuse-ld=bfd",
7+
]
8+

wallet-unit-poc/ecdsa-spartan2/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ bincode = "1.3.3"
1818
memmap2 = "0.9.8"
1919

2020
[profile.release]
21-
debug = true
21+
debug = true
22+
opt-level = 2
23+
lto = false
24+
codegen-units = 16

0 commit comments

Comments
 (0)