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-compiling with MSVC toolchain from Linux #15

Open
DBLouis opened this issue Sep 5, 2023 · 3 comments · May be fixed by #22
Open

Cross-compiling with MSVC toolchain from Linux #15

DBLouis opened this issue Sep 5, 2023 · 3 comments · May be fixed by #22

Comments

@DBLouis
Copy link

DBLouis commented Sep 5, 2023

I am using cargo-xwin to cross-compile my project from Linux using the MSVC toolchain.

I was able to make it work with a symlink for rc.exe to the LLVM provided tools llvm-rc-14, but that feels kind of hacky :)
I would like to make a PR but I am not sure what is the best approach.

@h4rldev
Copy link

h4rldev commented Sep 20, 2023

I've tried to cross compile to gnu and is encountering issues with no metadata being applied.

@BenjaminRi
Copy link
Owner

I've tried to cross compile to gnu and is encountering issues with no metadata being applied.

Can you post your build.rs and the command you called to cross-compile it? The GNU cross-compilation works for me.

@h4rldev
Copy link

h4rldev commented Sep 20, 2023

Yeah, I fixed it, it was #[cfg] not working as I expected

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