Commit 8ac5375
committed
installsrc: build a non-AOT binary from source
Enabling Native AOT made install-from-source.sh fail across every
distro: linking a native binary needs a C toolchain (clang and zlib
headers) that the script does not install, so the publish aborts with
"gcc or clang is missing".
Installing from source does not need a native binary. Build a normal
framework-dependent one instead by setting PublishAot=false in the
environment for the build; the executable project now honours an
externally supplied PublishAot and the nested publish inherits it
through the packaging scripts. The shipped packages, which set nothing,
still default to AOT.
This keeps the only requirement for a source install the .NET SDK the
script already bootstraps, rather than a per-distro C toolchain.
Assisted-by: Claude Opus 4.8
Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>1 parent 20996cd commit 8ac5375
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
263 | 267 | | |
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments