Skip to content

Commit 75ee9b0

Browse files
committed
u
1 parent d5b2fd3 commit 75ee9b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.cargo/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ rustflags = [
3737
"link-args=/DEFAULTLIB:ucrt.lib",
3838
]
3939

40+
# Fix napi breaking in test environment on Linux - allow undefined symbols
4041
# Addresses a potential segmentation fault issue that occurs when
4142
# running napi-rs within a Node.js worker thread on GNU/Linux systems.
4243
# See https://x.com/Brooooook_lyn/status/1895848334692401270
4344
[target.'cfg(target_env = "gnu")']
44-
rustflags = ["-C", "link-args=-Wl,-z,nodelete"]
45+
rustflags = ["-C", "link-args=-Wl,-z,nodelete,-Wl,--allow-shlib-undefined"]

0 commit comments

Comments
 (0)