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

Couldn't remove modules without translation units #1861

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

HenrikAkseliValve
Copy link
Contributor

I do not know I'm first to encounter this, however, loop that removes modules without translation units, could not have worked.

In C# Enumerator prohibits editing the collection so you cannot remove modules from options.Module while iterating options.Module.
CppSharp_Enumeration_bug00
CppSharp_Enumeration_bug01

Chose RemoveAll for its simplicity. Not necessary optimal solution although it might be.

I do not know I'm first to encounter this, however, loop that removes module without translation units, could not have worked.

In C# Enumerator prohibs editing the collection so you cannot remove modules from `options.Module` while iterating `options.Mobule`.

Chose `RemoveAll` for its simplicity. Not necessary optimal solution although it might be.
@HenrikAkseliValve
Copy link
Contributor Author

@dotnet-policy-service agree

@tritao tritao merged commit 345de8b into mono:main Aug 20, 2024
3 of 4 checks passed
@HenrikAkseliValve
Copy link
Contributor Author

Thank you. Fastest merge request I have ever requested. 👏

@tritao
Copy link
Collaborator

tritao commented Aug 20, 2024

Thank you. Fastest merge request I have ever requested. 👏

Thanks for the contribution too.

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

Successfully merging this pull request may close these issues.

3 participants