Skip to content

Introduce PCH for codegen targets - #58317

Open
lukmccall wants to merge 1 commit into
react:mainfrom
lukmccall:@lukmccall/upstream-pch
Open

Introduce PCH for codegen targets#58317
lukmccall wants to merge 1 commit into
react:mainfrom
lukmccall:@lukmccall/upstream-pch

Conversation

@lukmccall

@lukmccall lukmccall commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary:

Upstream precompiled headers configuration on Android that was added to Expo in SDK 56.
Related Expo PRs:

In an Expo test app with ~17 turbomodules, I was able to reduce the C++ build time from ~16 min to ~5 min.

These changes only affect the codegen targets. They shouldn't affect user code.

Changelog:

[ANDROID] [ADDED] - Introduce PCH for codegen targets to improve compilation time

Test Plan:

  • assembleDebug and assembleRelease in rn-tester
  • Manually confirmed that .pch was generated ✅
  • Opened rn-tester in Android Studio to check if the sync workaround works ✅

Similar changes were added to Expo some time ago and have worked well in production.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 3, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Expo Partner: Expo Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Expo Partner: Expo p: Software Mansion Partner: Software Mansion Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant