Skip to content

Commit 1d1ff9e

Browse files
authored
fix(node): Fix worker_threads issue on glibc platform (#10306)
Ref: - napi-rs/napi-rs#2494 - rust-lang/rust#91979
1 parent a80dea8 commit 1d1ff9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.cargo/config.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ rustdocflags = ["--cfg", "docsrs"]
1313
rustflags = ["-Zshare-generics=y"]
1414

1515
[target.x86_64-unknown-linux-gnu]
16-
rustflags = ["-C", "target-feature=+sse2", "-Zshare-generics=y"]
16+
rustflags = ["-C", "target-feature=+sse2", "-Zshare-generics=y", "-C", "link-args=-Wl,-z,nodelete"]
1717

1818
[target.aarch64-unknown-linux-gnu]
1919
linker = "aarch64-linux-gnu-gcc"
20+
rustflags = ["-C", "link-args=-Wl,-z,nodelete"]
2021

2122
[target.aarch64-unknown-linux-musl]
2223
linker = "aarch64-linux-musl-gcc"
@@ -30,7 +31,7 @@ rustflags = [
3031

3132
[target.armv7-unknown-linux-gnueabihf]
3233
linker = "arm-linux-gnueabihf-gcc"
33-
34+
rustflags = ["-C", "link-args=-Wl,-z,nodelete"]
3435

3536
[target.x86_64-pc-windows-msvc]
3637
linker = "rust-lld"

0 commit comments

Comments
 (0)