MichalStrehovsky / PublishAotCross

NuGet package to help you cross-compile Native AOT to different OSes/architectures
MIT License
91 stars 11 forks source link

Add support for Linux host #2

Open MichalStrehovsky opened 1 year ago

MichalStrehovsky commented 1 year ago

We're currently limited to Windows host because I was lazy to write the clang shim batch file in Bash.

https://github.com/MichalStrehovsky/PublishAotCross/blob/8fbc8fad1c943228c191c998d3995e5d300f7741/src/clang.cmd#L1-L26

Windows host is also guarded here:

https://github.com/MichalStrehovsky/PublishAotCross/blob/8fbc8fad1c943228c191c998d3995e5d300f7741/src/PublishAotCross.targets#L4

scgm0 commented 2 weeks ago

I managed to get Linux to Windows cross-compilation working via msvc-wine; may I file a PR for that? demo: https://github.com/scgm0/NativeAotTest