mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
fix(napi): segfault when running napi-rs within a Node.js worker thread on gnu linux
closes #9054
This commit is contained in:
1 file changed
+6
@@ -36,3 +36,9 @@ rustflags = [
|
||||
"-C",
|
||||
"link-args=/DEFAULTLIB:ucrt.lib",
|
||||
]
|
||||
|
||||
# Addresses a potential segmentation fault issue that occurs when
|
||||
# running napi-rs within a Node.js worker thread on GNU/Linux systems.
|
||||
# See https://x.com/Brooooook_lyn/status/1895848334692401270
|
||||
[target.'cfg(target_env = "gnu")']
|
||||
rustflags = ["-C", "link-args=-Wl,-z,nodelete"]
|
||||
Reference in new issue
Block a user