Skip to content

Share NativeAotSupported check via arcade - #7004

Merged
MichalStrehovsky merged 8 commits into
dotnet:mainfrom
am11:chore/shared-nativeaot-infra
Jun 18, 2026
Merged

MichalStrehovsky merged 8 commits into
dotnet:mainfrom
am11:chore/shared-nativeaot-infra

Conversation

@am11

@am11 am11 commented Jun 3, 2026

Copy link
Copy Markdown
Member

Shared with runtime and SDK.

@dotnet-policy-service
dotnet-policy-service Bot requested review from a team June 3, 2026 14:05
@am11

am11 commented Jun 3, 2026

Copy link
Copy Markdown
Member Author

cc @akoeplinger please run linux-musl type of leg against this PR so we can see cross-build is intact.

@am11
am11 force-pushed the chore/shared-nativeaot-infra branch 4 times, most recently from 3c409d9 to 27bdea1 Compare June 3, 2026 14:25
@am11
am11 force-pushed the chore/shared-nativeaot-infra branch from 27bdea1 to 85b48c7 Compare June 3, 2026 17:52
@am11

am11 commented Jun 9, 2026 •

Copy link
Copy Markdown
Member Author

cc @baronfel, @MichalStrehovsky, similar to @DamianEdwards' aspnetcore approach #6798 but for SDK. We are sharing them via arcade to stay consistent.

Single point to determine:

  • List of NativeAOT supported platforms (majority of platforms are these days; remaining ones are 'port in progress')
  • Cross-build linker flags compatible with .NET engineering infrastructure

@baronfel

baronfel commented Jun 9, 2026

Copy link
Copy Markdown
Member

cc @JeremyKuhne for visibility - we'll likely want to adopt this pattern in MSBuild as well

Comment thread src/runtime/src/coreclr/CMakeLists.txt Resolved
Comment thread src/runtime/src/coreclr/CMakeLists.txt Resolved

@MichalStrehovsky MichalStrehovsky left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you! This is great. I expect the worst thing this could cause is an issue during CMake configure, but looking at the ARMv6 or s390 clr.iltools bringups, I expect it to be minor or nothing at all.

@akoeplinger I have not done changes to eng/common since the monorepo got introduced. Is this good to go from flow perspective? One thing I'm not sure about is the eng/common/native/LocateNativeCompiler.target being only present in sdk, we might need a copy in the other directories.

@am11

am11 commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

eng/common brings significant portion of shared engineering infra and it is on auto sync. I’ve only added files to SDK and runtime which I needed to successfully compile.

@MichalStrehovsky

Copy link
Copy Markdown
Member

eng/common brings significant portion of shared engineering infra and it is on auto sync. I’ve only added files to SDK and runtime which I needed to successfully compile.

The specific concern I have is that LocateNativeCompiler.targets only exists in sdk/eng/common/native/LocateNativeCompiler.targets but it's missing in arcade's eng/common. AFAIK arcade's eng/common is the source of truth and automation will make sure the subrepos match arcade. In the past it wasn't sufficient to put a file into a subrepo and expect it to land in arcade (e.g. yours dotnet/arcade#16756 that mirrored a file from dotnet/runtime's copy).

@am11

am11 commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

It was sync'd with arcade as well https://github.com/dotnet/arcade/blob/56539035afb7a5b9ef1be4ec42aa654863995f08/eng/common/native/LocateNativeCompiler.targets. You are actually raising a good point; I had the same question and @ViktorHofer explained it to me. My understanding is, either:

  • Update eng/common in dotnet/arcade repo, it will flow to the consumer repos
  • or update src/arcade/eng/common in VMR (e.g. if we want to test stuff simultaneously across the repos like this PR) and it will flow to arcade along with other repos.

Note that VMR's top-level eng/common is not the source-of-truth; arcade is as before.

@MichalStrehovsky

Copy link
Copy Markdown
Member

@MichalStrehovsky
MichalStrehovsky merged commit 58d1b48 into dotnet:main Jun 18, 2026
11 checks passed
@am11
am11 deleted the chore/shared-nativeaot-infra branch June 18, 2026 07:26
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.

5 participants