-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET: Implement support for AOT-compiling using LLVM #11379
Comments
Why is it conditional? I thought we discussed that only LLVM AOT will be used for net6 publishing? |
There's no condition, it just hasn't been implemented yet. Although I don't see why we have to force people to use the LLVM AOT if the normal AOT they may use during debugging works for them (which doesn't mean we can't make the LLVM AOT the default). |
Switching to the new AOT msbuild task (part of the workload) should be done first (or at the same time). |
@dalexsoto @rolfbjarne @spouliot - any estimate on when this can be done ? |
@SamMonoRT I'm hoping to get this done for P7. |
…M to build .NET apps. Fixes #11379. (#12176) * [xharness] Add test case for running monotouch-test with LLVM on .NET on device. * [dotnet] Parse MtouchUseLlvm. * [tests] Add helper makefiles for building monotouch-test and MySimpleApp in .NET from the command line. * [tools] Pass the AOTCompiler property to the ComputeAOTArguments linker steps. So that the ComputeAOTArguments can compute the llvm-path value to pass to the AOT compiler (the llvm-path value states where the opt and llc command-line tools are, and they're next to the AOT compiler). * [dotnet] Remove unused AOTCompileTaskBase.AOTData property. * [msbuild/dotnet] Use properties on the _AssembliesToAOT item group to specify output paths. This deduplicates a little bit code to compute the output path. * [tools] Compute the llvm output file and pass it to the AOT compiler / native linker * [msbuild] Remove unused CompileNativeCodeTaskBase.ObjectFiles property. * [msbuild/dotnet] Make sure target Outputs show up in a task Output to make the build work correctly on windows. Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
xamarin-macios/tools/dotnet-linker/Steps/ComputeAOTArguments.cs
Lines 40 to 41 in b4b8ee7
This should be just a matter of copying/porting whatever mtouch does when using LLVM to dotnet-linker.
The text was updated successfully, but these errors were encountered: