-
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] Fix native bits build when targeting "cross" architecture iOS platforms #88079
Conversation
…rms with Native AOT
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsThis PR aims to fix the official build when targeting "cross" architecture. Initially, the change was tested locally when targeting the same architecture. Resolves #87985 (comment)
|
/azp list |
This comment was marked as resolved.
This comment was marked as resolved.
src/coreclr/crosscomponents.cmake
Outdated
@@ -1,5 +1,5 @@ | |||
# Add targets to the crosscomponents subcomponent build | |||
if (CLR_CMAKE_HOST_OS STREQUAL CLR_CMAKE_TARGET_OS) | |||
if (CLR_CMAKE_HOST_OS STREQUAL CLR_CMAKE_TARGET_OS OR CLR_CMAKE_TARGET_IOS OR CLR_CMAKE_TARGET_TVOS OR CLR_CMAKE_TARGET_MACCATALYST) |
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.
@jkoritzinsky could you also have a look at this? This doesn't look wrong to me but I'm not sure I understand why all of this is under if (CLR_CMAKE_HOST_OS STREQUAL CLR_CMAKE_TARGET_OS)
to begin with.
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.
(Maybe we can merge as-is since this is to unblock official builds, but I'd like Jeremy to also see this once Seattle wakes up.)
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.
I would rather revert the previous PR than rushing with this change until we confirm it is properly implemented.
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.
I think no changes are needed in the src/coreclr/crosscomponents.cmake
.
The official build jobs have passed: https://dev.azure.com/dnceng/internal/_build/results?buildId=2210149&view=results |
Merging it to unblock the official builds. @jkoritzinsky please take a look and we can update it in a follow-up PR if needed. |
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
This PR aims to fix the official build when targeting "cross" architecture iOS platforms. Initially, the change #87985 was tested locally when targeting the same architecture.
Resolves #87985 (comment)