Skip to content

Enable NativeAOT cross-platform build for iOS-like platforms  #87764

Closed

Description

Description

Currently, when building Native AOT for iOS-like platforms, we encounter an issue that requires two separate builds: one for the host and one for the target. In order to support cross-platform builds for iOS-like platforms, it is necessary to not only change the architecture but also the OS. To address this problem and eliminate the need for building the runtime twice, which can be time-consuming for the CI, the idea is to modify the existing pattern for cross-architecture builds in the crossgen2 and ilcompiler to support cross-platform builds.

Initial changes are available in 7d46128. The libjitinterface_arm64.dylib is created in the default directory, which is artifacts/bin/coreclr/ios.arm64.Release/libjitinterface_arm64.dylib. However, when cross-compilation is used, it is expected to be in the different directory artifacts/bin/coreclr/ios.arm64.Release/osx/arm64/libjitinterface_arm64.dylib.

Initial discussion can be found in #87260 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

  • Status

    No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions