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

Backport fix for Ccache from 0.74 to main #44089

Closed
wants to merge 1 commit into from

Conversation

cipolleschi
Copy link
Contributor

Summary:
While doing the release of 0.74.0-RC.9, we encountered some failures while building because the committed project had some new flags that have been added by cocoapods and that required Ccache.

However, Ccache is not a hard requirement to run React Native and the build started failing on systems that does not have ccache installed.
That happened because we were missing the piece of code that removed Ccache from the project in case the tool is not installed in the system.

We already committed such commit in the stable branch of 0.74, with this commit. This change will port the same fix in main.

Changelog

[iOS][Fixed] - Make sure to remove ccache scripts when ccache is not installed

Differential Revision: D56140015

Summary:
While doing the release of 0.74.0-RC.9, we encountered some failures while building because the committed project had some new flags that have been added by cocoapods and that required Ccache.

However, Ccache is not a hard requirement to run React Native and the build started failing on systems that does not have ccache installed.
That happened because we were missing the piece of code that removed Ccache from the project in case the tool is not installed in the system.

We already committed such commit in the stable branch of 0.74, with [this commit](facebook@2b18fdf). This change will port the same fix in main.

## Changelog
[iOS][Fixed] - Make sure to remove ccache scripts when ccache is not installed

Differential Revision: D56140015
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Apr 15, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56140015

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 6dd83cb.

Copy link

This pull request was successfully merged by @cipolleschi in 6dd83cb.

When will my fix make it into a release? | How to file a pick request?

@kraenhansen
Copy link
Contributor

kraenhansen commented Apr 23, 2024

Thanks a lot for tackling this heads on.

I do find the message a bit confusing, if I don't have ccache installed, it feels weird to see:

[Ccache]: Removing Ccache from CC, LD, CXX & LDPLUSPLUS build settings

The intent of the original PR was to log nothing at all if developers didn't have ccache 🤔

Regarding

the build started failing on systems that does not have ccache installed.

This is indeed unexpected, do you have a link for such a failure? Is the generated Xcode project transferred between macines? I would love to learn how that could happen with the changes introduced in #42051

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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants