Skip to content

Clarification about bytecode generation during cross-compilation #94

Answered by robertsLando
mattiapv asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mattiapv
Comment options

@robertsLando
Comment options

Answer selected by mattiapv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants