Commit 1985ddb
committed
installsrc: disable AOT for the install-from-source build
Native AOT links the published binary with clang. Leaving it on for a
source install would force every distro to install a C toolchain just
to build a local copy, which is why the install-from-source validation
fails across the board with "gcc or clang is missing".
Installing from source does not need a native binary, so turn AOT off
for it alone: set PublishAot=false in the environment for the build
(the executable project honours an externally supplied value, and the
nested publish inherits it through the packaging scripts). With AOT
off, layout.sh's existing self-contained, single-file publish produces
a portable binary that needs only the .NET SDK to build and bundles its
own runtime to run - so it launches even on the distros where the SDK
was installed to a non-standard location. The shipped packages set
nothing and still default to AOT.
This is a deliberate stopgap that leaves the rest of the
install-from-source flow as-is; a later commit reworks
install-from-source handling altogether.
Assisted-by: Claude Opus 4.8
Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>1 parent 2c3ebd0 commit 1985ddb
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