Repository navigation
Enable NativeAOT CMake on additional architectures - #130593
MichalStrehovsky merged 3 commits into
Conversation
Add placeholder assembly sources required by NativeAOT CMake for s390x, ppc64le, and Unix x86. Co-authored-by: Copilot <[email protected]> Copilot-Session: 5e3d4972-51a5-4b7a-b83a-913fa8733162
|
/azp run runtime-community |
|
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
This PR expands the CoreCLR CMake build’s NativeAOT coverage beyond the previous “reject list” by adding placeholder architecture-specific assembly source files for s390x, ppc64le, and Unix x86, and by relaxing the top-level CMake gating to only exclude WASM.
Changes:
- Add placeholder CoreCLR runtime asm sources (AllocFast/StubDispatch/WriteBarriers) for s390x and ppc64le to satisfy NativeAOT Runtime CMake inputs.
- Add placeholder NativeAOT Runtime asm sources (UniversalTransition/PInvoke/etc.) and AsmMacros_Shared.h for s390x and ppc64le, plus Unix x86 stubs for GcProbe/DispatchResolve.
- Update
src/coreclr/CMakeLists.txtto include thenativeaotsubdirectory on all non-WASM host architectures.
Reviewed changes
Copilot reviewed 25 out of 25 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/coreclr/runtime/s390x/WriteBarriers.S | Adds placeholder asm include for s390x CoreCLR runtime write barriers source. |
| src/coreclr/runtime/s390x/StubDispatch.S | Adds placeholder asm include for s390x CoreCLR runtime stub dispatch source. |
| src/coreclr/runtime/s390x/AllocFast.S | Adds placeholder asm include for s390x CoreCLR runtime fast alloc source. |
| src/coreclr/runtime/ppc64le/WriteBarriers.S | Adds placeholder asm include for ppc64le CoreCLR runtime write barriers source. |
| src/coreclr/runtime/ppc64le/StubDispatch.S | Adds placeholder asm include for ppc64le CoreCLR runtime stub dispatch source. |
| src/coreclr/runtime/ppc64le/AllocFast.S | Adds placeholder asm include for ppc64le CoreCLR runtime fast alloc source. |
| src/coreclr/nativeaot/Runtime/s390x/UniversalTransition.S | Adds placeholder s390x NativeAOT runtime universal transition asm source. |
| src/coreclr/nativeaot/Runtime/s390x/PInvoke.S | Adds placeholder s390x NativeAOT runtime P/Invoke asm source. |
| src/coreclr/nativeaot/Runtime/s390x/MiscStubs.S | Adds placeholder s390x NativeAOT runtime misc stubs asm source. |
| src/coreclr/nativeaot/Runtime/s390x/InteropThunksHelpers.S | Adds placeholder s390x NativeAOT runtime interop thunks helper asm source. |
| src/coreclr/nativeaot/Runtime/s390x/GcProbe.S | Adds placeholder s390x NativeAOT runtime GC probe asm source. |
| src/coreclr/nativeaot/Runtime/s390x/ExceptionHandling.S | Adds placeholder s390x NativeAOT runtime EH asm source. |
| src/coreclr/nativeaot/Runtime/s390x/DispatchResolve.S | Adds placeholder s390x NativeAOT runtime dispatch resolve asm source. |
| src/coreclr/nativeaot/Runtime/s390x/AsmMacros_Shared.h | Adds s390x NativeAOT/CoreCLR shared asm macro header shim. |
| src/coreclr/nativeaot/Runtime/ppc64le/UniversalTransition.S | Adds placeholder ppc64le NativeAOT runtime universal transition asm source. |
| src/coreclr/nativeaot/Runtime/ppc64le/PInvoke.S | Adds placeholder ppc64le NativeAOT runtime P/Invoke asm source. |
| src/coreclr/nativeaot/Runtime/ppc64le/MiscStubs.S | Adds placeholder ppc64le NativeAOT runtime misc stubs asm source. |
| src/coreclr/nativeaot/Runtime/ppc64le/InteropThunksHelpers.S | Adds placeholder ppc64le NativeAOT runtime interop thunks helper asm source. |
| src/coreclr/nativeaot/Runtime/ppc64le/GcProbe.S | Adds placeholder ppc64le NativeAOT runtime GC probe asm source. |
| src/coreclr/nativeaot/Runtime/ppc64le/ExceptionHandling.S | Adds placeholder ppc64le NativeAOT runtime EH asm source. |
| src/coreclr/nativeaot/Runtime/ppc64le/DispatchResolve.S | Adds placeholder ppc64le NativeAOT runtime dispatch resolve asm source. |
| src/coreclr/nativeaot/Runtime/ppc64le/AsmMacros_Shared.h | Adds ppc64le NativeAOT/CoreCLR shared asm macro header shim. |
| src/coreclr/nativeaot/Runtime/i386/GcProbe.S | Adds placeholder Unix x86 NativeAOT runtime GC probe asm source. |
| src/coreclr/nativeaot/Runtime/i386/DispatchResolve.S | Adds placeholder Unix x86 NativeAOT runtime dispatch resolve asm source. |
| src/coreclr/CMakeLists.txt | Enables nativeaot subdirectory for all non-WASM host architectures (removes prior reject list). |
|
/azp run runtime-community |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run runtime-community |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Co-authored-by: Adeel Mujahid <[email protected]>
|
@dotnet/ilc-contrib could someone have a look? Ever since .NET 7 we had an exclusion rule for building nativeaot subtree that allowed building all of |
Add placeholder assembly sources required by NativeAOT CMake for s390x, ppc64le, and Unix x86. --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Adeel Mujahid <[email protected]>
Add placeholder assembly sources required by NativeAOT CMake for s390x, ppc64le, and Unix x86.