Is there any way to use static linking in node? #28153
-
|
I'm looking for a way to use static lib instead of dll in node js bindings. Because when I do "npm i onnxruntime-node" it downloads dll |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Not with the published In the current Node package:
If you need a static-link experiment, that would be a custom source build of the Node binding and ONNX Runtime, not an |
Beta Was this translation helpful? Give feedback.

If by
x32you mean 32-bit x86 / Nodeprocess.arch === "ia32", treat it as an unsupported custom build path rather than something the publishedonnxruntime-nodepackage can do.The current package/release packaging is built around
bin/napi-v6/{os}/{cpu_arch}and the release pipeline comments list the packaged CPU arch values asx64andarm64forwin32,darwin, andlinux. The install metadata also only knows aboutwin32/x64,win32/arm64,linux/x64,linux/arm64,darwin/x64, anddarwin/arm64. There is a local Node build script option for--arch=ia32, but that does not mean the npm package publishes or tests 32-bit binaries.The main problems I would expect are: