rust-cross / cargo-zigbuild

Compile Cargo project with zig as linker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is cross-compilation on Linux for Windows possible?

lnicola opened this issue · comments

With x86_64-pc-windows-gnu I get:

  = note: lld-link: warning: ignoring unknown argument: -exclude-symbols:_ZN3std2rt10lang_start17h939a6fb8a2a68f4dE
          lld-link: error: -exclude-symbols:_ZN3std2rt10lang_start17h939a6fb8a2a68f4dE is not allowed in .drectve

while x86_64-pc-windows-msvc (understandably?) fails on my system with note: error: FileNotFound.

We have partial support for Windows gnu, the lld-link error message suggests that you might have misconfigured the target because lld-link is for msvc.

For windows msvc, use cargo-xwin.

suggests that you might have misconfigured the target because lld-link is for msvc.

I didn't configure anything 😅.

For windows msvc, use cargo-xwin.

Thank you, that works. I'll close the issue, then. Whoever needs Windows support can find it.