corert
corert copied to clipboard
Cross compiling fails
Is cross compiling supported?
Reading the turorial, I got the impression that it should be supported. But I couldn't build my project for macOs or Linux on my Windows machine.
This is the error I got for Linux:
'"C:\Users\[user]\.nuget\packages\runtime.linux-x64.microsoft.dotnet.ilcompiler\1.0.0-alpha-26223-02\tools\ilc"' is not recognized as an internal or external command,
operable program or batch file.
And I got a similar error for mac.
Cross compiling is not supported yet.
Ok. Thanks! Is there a timeframe for this feature?
will the IL2CPP work when using ubuntu on windows, with a linux-64 target? what are the blockers for using IL2CPP with -r linux-64 or other platforms?
Yes, CppCodeGen should work in Ubuntu on Windows. Note that CppCodeGen is experimental less mature option. You may have more success with using the default RyuJIT codegen.
@jkotas Thanks, I'm looking at IL2CPP so that I may compile using a non llvm compiler for a target currently not natively supported by .NET CORE with very limited resources and therefore it won't have a runtime with JIT capability given this is RyuJIT still the better an option? am I missing something ?
Ok, CppCodeGen is the right option for that.
@jkotas cool wasnt sure if I missed something and if RyuJIT could be used for none llvm compiler and target other types of compilers like gcc or generate libraries
A year later, and it's still unsupported @jkotas is it still planned to be supported or should we consider it a distant future?
I am not aware of anybody actively working on it.
@jkotas where would a developer start if they wanted to implement this? How does dotnet core go from VM IR to x86?
We are moving this project to https://github.com/dotnet/runtimelab/tree/feature/NativeAOT . The new place is fork of dotnet/runtime repo that has the build infrastructure for cross-compilation. Getting the NativeAOT branch building for x86 would be the first step.
How does dotnet core go from VM IR to x86?
RyuJIT is used on all platforms. https://github.com/dotnet/runtime/tree/master/src/coreclr/src/jit.