bflattened / bflat

C# as you know it but with Go-inspired tooling (small, selfcontained, and native executables)
GNU Affero General Public License v3.0
3.56k stars 102 forks source link

How to this can cross compile #111

Closed NCLnclNCL closed 8 months ago

NCLnclNCL commented 10 months ago

What is lld

MichalStrehovsky commented 10 months ago

It's https://lld.llvm.org/. The NativeAOT compiler from the upstream dotnet/runtime repo is already a crosscompiler. It produces native object files that need to be linked to form an executable. LLD is used for that in bflat.

NCLnclNCL commented 10 months ago

It's https://lld.llvm.org/. The NativeAOT compiler from the upstream dotnet/runtime repo is already a crosscompiler. It produces native object files that need to be linked to form an executable. LLD is used for that in bflat.

How to use it for mainstream nativeAot to cross compile ??

MichalStrehovsky commented 10 months ago

How to use it for mainstream nativeAot to cross compile ??

You can't. https://www.nuget.org/packages/PublishAotCross is the closest thing to it.

bflat can do this because it has a special build of the dotnet/runtime with some unupstreamable changes.