Skip to content

[WIP] marshal methods & IntPtr.Size #8156

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jonathanpeppers
Copy link
Member

Fixes: #8155

@@ -114,47 +114,37 @@ public void Rewrite (DirectoryAssemblyResolver resolver, List<string> targetAsse
}
}

var newAssemblyPaths = new List<string> ();
var newAssemblyPaths = new List<ValueTuple<string, string>> ();
Copy link
Member

Choose a reason for hiding this comment

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

Can we not use the glorious (string Something, string SomethingElse) tuple syntax?

@jonathanpeppers
Copy link
Member Author

This PR is actually an insufficient fix as this list:

https://github.com/xamarin/xamarin-android/blob/efa14e262efa42411783d7ae6869bdde165b68e4/src/Xamarin.Android.Build.Tasks/Utilities/MarshalMethodsAssemblyRewriter.cs#L25

Only contains the first android-arm assembly, and so it can only save this assembly on top of the 4 architectures.

I added a parameter to my test:

public void DoNotErrorOnPerArchJavaTypeDuplicates ([Values(true, false)] bool enableMarshalMethods)

It passes on false and fails on true.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IL Linker Intrinsics + Marshal Methods, oh my!
2 participants