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

[iOS] Remove cmake build dependency for library mode #89869

Merged
merged 16 commits into from
Aug 8, 2023

Conversation

steveisok
Copy link
Member

This change removes cmake as a build dependency and instead uses clang directly when building for iOS/tvOS/Macatalyst library mode.

Steve Pfister added 13 commits June 29, 2023 15:41
Since we bumped to NDK 23, having the aot compiler itself generate shared libraries stopped working. This is due to NDK 23 moving most of the toolchain into a common bin directory. AS was left over in each of these directories as an alias to bin/<triple>-as.

This change adds a task to collect all of the important NDK toolchain paths. It also fixes up the aot build when `AOTWithLibraryFiles` is set to true and we want the aot compiler to produce shared libraries.
This change removes cmake as a build dependency and instead uses clang directly when building for iOS/tvOS/Macatalyst library mode.
@ghost
Copy link

ghost commented Aug 2, 2023

Tagging subscribers to this area: @directhex
See info in area-owners.md if you want to be subscribed.

Issue Details

This change removes cmake as a build dependency and instead uses clang directly when building for iOS/tvOS/Macatalyst library mode.

Author: steveisok
Assignees: steveisok
Labels:

area-Infrastructure-mono

Milestone: -

@steveisok
Copy link
Member Author

/azp run runtime-ioslike

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@steveisok
Copy link
Member Author

/azp run runtime-android

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@steveisok steveisok requested a review from radical as a code owner August 2, 2023 23:30
@steveisok
Copy link
Member Author

/azp run runtime-android

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@akoeplinger akoeplinger left a comment

Choose a reason for hiding this comment

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

LGTM with a few comments

src/tasks/MobileBuildTasks/Apple/AppleSdk.cs Outdated Show resolved Hide resolved
src/tasks/MobileBuildTasks/Apple/AppleSdk.cs Outdated Show resolved Hide resolved
src/tasks/MobileBuildTasks/Apple/AppleSdk.cs Outdated Show resolved Hide resolved
src/tasks/MobileBuildTasks/Apple/AppleSdk.cs Outdated Show resolved Hide resolved
@steveisok steveisok merged commit 39f4921 into dotnet:main Aug 8, 2023
179 checks passed
@steveisok steveisok deleted the ios-cmake-less-libbuild branch August 8, 2023 03:02
steveisok pushed a commit to steveisok/runtime that referenced this pull request Aug 10, 2023
In dotnet#89869, the call to the AppleAppBuilderTask passed an item for `NativeDependencies` as opposed to a property. The change wasn't reflected in the runtime test build.proj, so the built test app wasn't being sent in.

Fixes dotnet#90312

Fixes dotnet#90218
steveisok added a commit that referenced this pull request Aug 11, 2023
In #89869, the call to the AppleAppBuilderTask passed an item for `NativeDependencies` as opposed to a property. The change wasn't reflected in the runtime test build.proj, so the built test app wasn't being sent in.

Fixes #90312

Fixes #90218
@ghost ghost locked as resolved and limited conversation to collaborators Sep 7, 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.

2 participants