Skip to content

WIP: Enable AOT for osu!framework #5907

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

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from
Draft

Conversation

smoogipoo
Copy link
Contributor

@smoogipoo smoogipoo commented Jul 7, 2023

This is just a tracking PR so progress can be seen. This is separate from/unrelated to/not necessary for any Mono/iOS AOT efforts (@frenzibyte).

Fairly low priority.

Current state: SampleGame.Desktop runs, osu.Framework.Tests runs without tests.

smoogipoo and others added 24 commits April 29, 2023 03:32
`NATIVE_DLL_SEARCH_DIRECTORIES` is not present on AOT runtimes.
`NATIVE_DLL_SEARCH_DIRECTORIES` is not present on AOT runtimes.
This requires a lot of reflection and/or dynamic code and is
fundamentally incompatible with AOT as-is...:

- Properties/metrhods of the current class: we can retain members of the
  current class with [DynamicallyAccessedMembers].
- Dynamic code generation (MakeGenericMethod): this one is much harder
  to because it's a generic method...

Disabling for now because this fails to serialise to input.json and
causes fatal errors.
smoogipoo added 2 commits July 8, 2023 01:35
Because JSON serialisation isn't working, it's saving empty files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants