Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[One .NET] support $(EnableLLVM) with AOT (#6157)
Fixed some issues that allows `$(EnableLLVM)` to work: * `$(_LLVMPath)` needs to point to Mono's AOT pack that contains `opt` and `llc`. * We need to fill out `ld-name` and `ld-flags`. * `ld-flags` needs some special workarounds in order for them to be passed in correctly on .NET 6. * Use space as a delimiter * Escape spaces in paths * Added `temp-path` parameter. This prevents the warning on Windows: 'rm' is not recognized as an internal or external command I enabled tests around .NET 6 and LLVM. ~~ Results ~~ All tests: 1. Were running on a [Google Pixel 5][0], and 2. Enabled two architectures, arm64 and x86, and 3. **AOT time** was average of 10 runs with `-c Release -p:RunAOTCompilation=true`, with the `Activity: Displayed` time 4. **AOT+LLVM time** was average of 10 runs with `-c Release -p:RunAOTCompilation=true -p:EnableLLVM=true` with the `Activity: Displayed` time. | Test | AOT time | AOT+LLVM time | AOT apk size | AOT+LLVM apk size | | ------------------- | ------------: | ------------: | ------------: | -----------------: | | [HelloAndroid][1] | 00:00:00.238 | 00:00:00.226 | 12,073,931 | 12,602,315 | | [HelloMaui][2] | 00:00:00.624 | 00:00:00.596 | 43,167,801 | 47,546,425 | [0]: https://store.google.com/us/product/pixel_5_specs?hl=en-US [1]: https://github.com/dotnet/maui-samples/tree/714460431541f40570e91225e8ba4bc1fe08025f/HelloAndroid [2]: https://github.com/dotnet/maui-samples/tree/714460431541f40570e91225e8ba4bc1fe08025f/HelloMaui
- Loading branch information
1 parent
11ddd8c
commit 75a0743
Showing
6 changed files
with
158 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.