-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: test bindings on x86_64-unknown-linux-musl #306
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
32cf55c
to
f7e2fc8
Compare
f7e2fc8
to
0901e0d
Compare
0901e0d
to
46acea5
Compare
46acea5
to
bf498c4
Compare
bf498c4
to
04c0016
Compare
04c0016
to
a1f4956
Compare
a1f4956
to
59dc174
Compare
59dc174
to
0640511
Compare
f605acb
to
8df909b
Compare
mimalloc = "0.1" | ||
|
||
[target.'cfg(target_os = "linux")'.dependencies] | ||
mimalloc = { version = "0.1", features = ["local_dynamic_tls"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
迁移到 mimalloc 测试就好了?@Brooooooklyn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你需要在 Linux 下开启 local_dynamic_tls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原先的 mimalloc-rust
支持 local_dynamic_tls
吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
支持, 但是不维护了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢!
```bash Error: Error relocating /build/resvgjs.linux-x64-musl.node: mprotect: initial-exec TLS resolves to dynamic definition in /build/resvgjs.linux-x64-musl.node › Object.<anonymous> (js-binding.js:175:31) › Module._compile (node_modules/pirates/lib/index.js:117:24) ✘ __test__/index.spec.ts exited with a non-zero exit code: 1 ```
8df909b
to
4b55451
Compare
mimalloc-rust
is no longer maintained, migrated tomimalloc
.local_dynamic_tls
must be enabled in Linux, otherwise the following error will occur: