winresource icon indicating copy to clipboard operation
winresource copied to clipboard

Cross-compiling with MSVC toolchain from Linux

Open DBLouis opened this issue 1 year ago • 3 comments

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.

DBLouis avatar Sep 05 '23 08:09 DBLouis

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

h4rldev avatar Sep 20 '23 23:09 h4rldev

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.

BenjaminRi avatar Sep 20 '23 23:09 BenjaminRi

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

h4rldev avatar Sep 20 '23 23:09 h4rldev