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

[Build Tasks] Import mono linker sources #8482

Merged
merged 5 commits into from
Nov 9, 2023
Merged

Conversation

pjcollins
Copy link
Member

@pjcollins pjcollins commented Nov 3, 2023

The Xamarin.Android.Build.Tasks and Microsoft.Android.Sdk.ILLink
projects have been updated to only compile the linker sources that they
require, rather than including everything from the
src/Xamarin.Android.Build.Tasks/Linker folder.

Linker sources from mono/mono@6dd9def
have been added to src/Xamarin.Android.Build.Tasks/Linker/External.
Adding the couple dozen files we still depend on directly to the repo
removes one of the last dependencies we have on the mono bundle.

The LinkAssembliesNoShrink task is the main piece of XABT that depends
on these mono linker sources. In the future we should try to see if we
can migrate this tasks functionality to some ILLink tool/task invocation.

The `Xamarin.Android.Build.Tasks` and `Microsoft.Android.Sdk.ILLink`
projects have been updated to only compile the linker sources that they
require, rather than including everything from the
`src/Xamarin.Android.Build.Tasks/Linker` folder.

Linker sources from mono/mono@6dd9def
have been added to `src/Xamarin.Android.Build.Tasks/Linker/External`.
Adding the dozen or so files we still depend on directly to the repo
removes one of the last dependencies we still have on the mono bundle.

The `LinkAssembliesNoShrink` task is the main piece of XABT that depends
on these mono linker sources.  In the future we should try to see if we
migrate this tasks functionality to some ILLink tool/task invocation.
@pjcollins pjcollins force-pushed the dev/pjc/monolinkersrc branch from 9c3d7c5 to 92c8a9c Compare November 6, 2023 19:34
@pjcollins pjcollins marked this pull request as ready for review November 7, 2023 01:32
@pjcollins pjcollins requested a review from grendello November 7, 2023 21:42
@pjcollins
Copy link
Member Author

The MicrosoftIntune(False) failure is not local to this PR, we'll need to investigate that separately as it's also failing on main.

@jonathanpeppers
Copy link
Member

The Intune team shipped a release today, they say it might fix that test: #8495

@pjcollins pjcollins merged commit 5daf102 into main Nov 9, 2023
45 of 47 checks passed
@pjcollins pjcollins deleted the dev/pjc/monolinkersrc branch November 9, 2023 21:00
grendello added a commit that referenced this pull request Nov 13, 2023
* main:
  [tests] Better support running on arm64-v8a devices (#8492)
  [Build Tasks] Import mono linker sources (#8482)
  [tests] update Microsoft.Intune.Maui.Essentials.android (#8495)
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants