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

Library Forwarding: Test interaction of struct repacking and assume_compatible_data_layout #3374

Conversation

neobrain
Copy link
Member

@neobrain neobrain commented Jan 15, 2024

Needs #3373 merged first.

This just adds one more test to test the interaction between automatic struct repacking (added in #3371) and the previously added assume_compatible_data_layout annotation (#3177). This serves mainly as a consistency check to ensure other tests don't just pass "by accident".

While developing this, I also found that we aren't setting up GUEST_THUNK_LIBRARY properly, which the test library needs to enable guest-specific behavior however. A fix for this is included in the PR now as well.

The -deps target is the wrong target to add this to, since its compile flags
are propagated to both Guest.cpp and Host.cpp. Instead, define the flag only
when processing files within a guest context.
@neobrain neobrain force-pushed the feature_thunk_test_repack_vs_assume_compatible branch from 53c4d59 to b08d372 Compare January 19, 2024 10:19
@neobrain
Copy link
Member Author

Rebased now that the custom repacking code is merged.

@Sonicadvance1 Sonicadvance1 merged commit 3bfb4be into FEX-Emu:main Jan 20, 2024
10 checks passed
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.

2 participants