Skip to content

Update C# Runtime dependencies to support NativeAOT-LLVM prerequisites#4601

Merged
rekhoff merged 19 commits intotyler/update-nativeaot-llvm-infrastructurefrom
jlarabie/update-nativeaot-llvm-infrastructure
Mar 13, 2026
Merged

Update C# Runtime dependencies to support NativeAOT-LLVM prerequisites#4601
rekhoff merged 19 commits intotyler/update-nativeaot-llvm-infrastructurefrom
jlarabie/update-nativeaot-llvm-infrastructure

Conversation

@rekhoff
Copy link
Contributor

@rekhoff rekhoff commented Mar 10, 2026

Description of Changes

  • Add dotnet-experimental feed + package source mapping for LLVM packages in sdks/csharp/tools~/write-nuget-config.sh, so generated NuGet.Config files include NativeAOT-LLVM prerequisites.
  • Make LLVM toolchain packages explicit dependencies in SpacetimeDB.Runtime to ensure restores succeed even when LLVM dependencies are only referenced through the .nupkg.
  • Import the LLVM targets from the package when EXPERIMENTAL_WASM_AOT=1 to enable NativeAOT build steps without relying on downstream package reference resolution.

Context

Changes are required to get NativeAOT-LLVM in #4515 to build correct, but moving the packages closer to the build, to ensure they get into the Nuget restore successfully.
Additional changes where needed to write-nuget-config.sh‎ to allow Nuget.Config files generated with required changes during regression testing.

API and ABI breaking changes

None.

Expected complexity level and risk

2 (Low–moderate). Changes are scoped to build/restore infrastructure and package configuration.

Testing

  • Built CLI locally
  • Ran run-regression-tests.sh without errors

@rekhoff rekhoff self-assigned this Mar 10, 2026
@rekhoff rekhoff changed the base branch from master to tyler/update-nativeaot-llvm-infrastructure March 10, 2026 16:36
@rekhoff rekhoff changed the title Jlarabie/update nativeaot llvm infrastructure Update C# Runtime dependencies to support NativeAOT-LLVM prerequisites Mar 10, 2026
@rekhoff rekhoff marked this pull request as ready for review March 13, 2026 14:57
@rekhoff rekhoff requested review from bfops and jdetter as code owners March 13, 2026 14:57
Copy link
Contributor

@JasonAtClockwork JasonAtClockwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small thing in the CI otherwise this looks good, from our findings we'll still need more work on Linux and .NET 9+.

@rekhoff rekhoff merged commit 3e64dbd into tyler/update-nativeaot-llvm-infrastructure Mar 13, 2026
49 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants