-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NativeAOT] Support library mode with NativeAOT on iOS-like platforms #93658
Conversation
Tagging subscribers to this area: @directhex Issue DetailsThis PR enables support for building libraries for iOS-like platforms with NativeAOT. Changes
Additional notesTo test locally one can execute the following from the repo root directory:
Fixes #88737
|
|
/azp run runtime-ioslikesimulator |
Azure Pipelines successfully started running 1 pipeline(s). |
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
Outdated
Show resolved
Hide resolved
5089847
to
2f65e3b
Compare
43f2655
to
9ef633d
Compare
/azp run runtime-ioslikesimulator |
/azp run runtime-ioslike |
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-ioslikesimulator |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two optional nits, otherwise looks great! 👍
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
Outdated
Show resolved
Hide resolved
src/tests/FunctionalTests/iOS/Device/LibraryMode/iOS.Device.LibraryMode.Test.csproj
Outdated
Show resolved
Hide resolved
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
17e5aed
to
22235dd
Compare
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
The CI failures are unrelated. @steveisok @rolfbjarne @jkotas could you please take another look as we would like to get this in for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The changes in the shared native AOT files LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nativeaot/BuildIntegration looks good to me too!
This PR enables support for building libraries for iOS-like platforms with NativeAOT.
Changes
AppleAppBuilder
to support bundling in library mode for both MonoAOT and NativeAOTAppleAppBuilder
to support bundling in library mode when targeting iOS-like devicessrc/tests/FunctionalTests/iOS/Simulator/LibraryMode
for testing the library mode oniossimulators-arm64/x64
with NativeAOT - currently this only works locally please see comments in the project file for more infosrc/tests/FunctionalTests/iOS/Device/LibraryMode
for testing the library mode onios-arm64
for both MonoAOT and NativeAOTAdditional notes
To test locally one can execute the following from the repo root directory:
Test
MonoAOT
library mode onios-arm64
:Test
NativeAOT
library mode onios-arm64
:Documentation
Fixes #88737