Skip to content
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

Merged
merged 3 commits into from
Jun 27, 2023

Conversation

kotlarmilos
Copy link
Member

@kotlarmilos kotlarmilos commented Jun 27, 2023

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)

@kotlarmilos kotlarmilos added this to the 8.0.0 milestone Jun 27, 2023
@kotlarmilos kotlarmilos self-assigned this Jun 27, 2023
@kotlarmilos kotlarmilos changed the title [nativeaot] Fix native bits build when targeting "cross" architecture iOS platforms with Native AOT [nativeaot] Fix native bits build when targeting "cross" architecture iOS platforms Jun 27, 2023
@ghost
Copy link

ghost commented Jun 27, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

This 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)

Author: kotlarmilos
Assignees: kotlarmilos
Labels:

area-NativeAOT-coreclr

Milestone: 8.0.0

@kotlarmilos
Copy link
Member Author

/azp list

@azure-pipelines

This comment was marked as resolved.

@@ -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)
Copy link
Member

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.

Copy link
Member

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.)

Copy link
Member Author

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.

Copy link
Member Author

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.

@kotlarmilos
Copy link
Member Author

@kotlarmilos
Copy link
Member Author

Merging it to unblock the official builds. @jkoritzinsky please take a look and we can update it in a follow-up PR if needed.

@kotlarmilos kotlarmilos merged commit 3565f59 into dotnet:main Jun 27, 2023
163 of 168 checks passed
Copy link
Member

@jkoritzinsky jkoritzinsky left a comment

Choose a reason for hiding this comment

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

LGTM

@ghost ghost locked as resolved and limited conversation to collaborators Jul 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants