Clarification about bytecode generation during cross-compilation #94
-
I've been using
What does this mean exactly? Does it imply that if I want to generate bytecode for Windows, I need to run I tried unpacking the When I asked in another repository (bytenode) whether bytecode for Windows could be generated on macOS, I got this response:
So, is pkg able to generate bytecode for all architectures from a single machine? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
pkg do generate the bytecode of you project for each target you specify (node-os-arch), what's changing then is the nodejs binary we bundle the bytecode to that of course must match the target os/arch but of course we do support cross os and arch builds The bytecode production is done here: https://github.com/yao-pkg/pkg/blob/main/lib/fabricator.ts |
Beta Was this translation helpful? Give feedback.
pkg do generate the bytecode of you project for each target you specify (node-os-arch), what's changing then is the nodejs binary we bundle the bytecode to that of course must match the target os/arch but of course we do support cross os and arch builds
The bytecode production is done here: https://github.com/yao-pkg/pkg/blob/main/lib/fabricator.ts