Commit ea111fb
committed
build: don't use AOT publishing on unsupported RIDs
.NET 8 only supports AOT compilation on a subset of .NET runtimes,
namely:
- win-x64
- win-arm64
- osx-x64
- osx-arm64
- linux-x64
- linux-arm64
This means we need to do something else of our win-x86 and linux-arm
(32-bit) targets.
For these two, let's use the combo of SingleFile+Trimmed+ReadyToRun
publishing options instead to keep both file sizes down, and reduce
runtime performance hits from JIT.
.NET 9 and later support AOT for win-x86 and linux-arm (32-bit) targets,
but since we only prefer to target LTS releases of .NET, we'll have to
wait for .NET 10 (the next LTS release) to do AOT on _all_ our
platforms.
Given that .NET 10 GA is just around the corner, this shouldn't be too
long to wait.1 parent 4c31883 commit ea111fb
File tree
1 file changed
+12
-0
lines changed1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
| |||
0 commit comments