Skip to content
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

Cross Compile on Linux #1087

Open
jkroepke opened this issue Jun 16, 2023 · 0 comments
Open

Cross Compile on Linux #1087

jkroepke opened this issue Jun 16, 2023 · 0 comments

Comments

@jkroepke
Copy link

Hi,

cross compile on linux does not work out of the box with node-gyp in backend. If I run @electron/rebuild -a arm64 on a amd64 system, the output will be still a amd64 binary.

If I define

export CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++

Before running the rebuild command, it works find.

However, in a multi-arch build this is not possible. Running electron-builder with —x64 —amd64 would call rebuild twice.

It should be considered if electron-builder could set the CC variables, if host and target arch does not match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant