Skip to content

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

Draft
rekhoff wants to merge 3 commits intotyler/update-nativeaot-llvm-infrastructurefrom
jlarabie/update-nativeaot-llvm-infrastructure
Draft

Update C# Runtime dependencies to support NativeAOT-LLVM prerequisites#4601
rekhoff wants to merge 3 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
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