Skip to content

Add PCH for JSystem#2645

Merged
TakaRikka merged 1 commit intozeldaret:mainfrom
caseif:jsystem-pch
Sep 11, 2025
Merged

Add PCH for JSystem#2645
TakaRikka merged 1 commit intozeldaret:mainfrom
caseif:jsystem-pch

Conversation

@caseif
Copy link
Copy Markdown
Contributor

@caseif caseif commented Sep 10, 2025

This PR adds JSystem.pch which fixes weak function order/removes the need for nosyminline in several JSystem TUs. These changes are deliberately conservative and both the PCH and the files that include it are as narrowly scoped as possible to fix existing function order issues.

This approach admittedly feels a little ad hoc, so I'm very open to feedback if it seems like this is just being treated as a nail for the PCH hammer when it shouldn't.

@decomp-dev
Copy link
Copy Markdown

decomp-dev bot commented Sep 10, 2025

Report for ShieldD (4b729b0 - 265e111)

No changes

Report for GZ2P01 (4b729b0 - 265e111)

No changes

Report for GZ2E01 (4b729b0 - 265e111)

📈 Linked code: 50.66% (+0.06%, +7104 bytes)

No changes

Report for GZ2J01 (4b729b0 - 265e111)

📈 Linked code: 47.12% (+0.06%, +7104 bytes)

No changes

@TakaRikka
Copy link
Copy Markdown
Contributor

does this break other JSystem TUs when included? i feel like if theres a pch then it was probably in all TUs rather than just a few

@caseif
Copy link
Copy Markdown
Contributor Author

caseif commented Sep 11, 2025

@TakaRikka It doesn't seem to break anything - I've gone through and added it to all JSystem TUs.

@TakaRikka
Copy link
Copy Markdown
Contributor

is this a real build issue or an issue with the cache

@caseif
Copy link
Copy Markdown
Contributor Author

caseif commented Sep 11, 2025

Somehow the PCH ended up unstaged when I amended the commit - should be fixed now.

@TakaRikka TakaRikka merged commit a6c3c20 into zeldaret:main Sep 11, 2025
4 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