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

Improve ccache instructions Fixes #4215 #4218

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

johnf
Copy link
Contributor

@johnf johnf commented Sep 16, 2024

In RN 0.74 support was added to natively support ccachng on ios by setting enable_ccache in the Podfile.
This change updates the relevant docs to use the much simpler instructions

@johnf johnf changed the title Ccache Improve ccache instructions Fixes #4215 Sep 16, 2024
Copy link

netlify bot commented Sep 16, 2024

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 0adc86a
🔍 Latest deploy log https://app.netlify.com/sites/react-native/deploys/66e948a7c79e8700078d09c2
😎 Deploy Preview https://deploy-preview-4218--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! thanks for updating the website.
I left a few nits for some unrelated changes. Once you revert these files, we can merge this!

@@ -585,14 +585,15 @@ article header h1 {
line-height: 3rem;
}

article header h2, {
article header h2 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: these changes should be reverted. They are unrelated to the changes we want to push here! 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cipolleschi, I added the stylesheet changes to a separate commit.
Someone should do them at some stage since prettier hasn't been run.
Would you like for me to add them to a separate PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that would be great. Also, prettier is running in CI, theoretically... 🤔

line-height: 3rem;

a {
color: var(--ifm-font-color-base);
font-size: 2.5rem;

&:hover, &:focus {
&:hover,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@@ -72,7 +72,8 @@
svg[class^="authorSocialLink"] {
fill: var(--subtle) !important;

&:hover, &:focus {
&:hover,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@@ -8,7 +8,10 @@ import {
useDocVersionSuggestions,
} from '@docusaurus/plugin-content-docs/client';
import {ThemeClassNames} from '@docusaurus/theme-common';
import {useDocsVersion, useDocsPreferredVersion} from '@docusaurus/plugin-content-docs/client';
import {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@johnf
Copy link
Contributor Author

johnf commented Sep 17, 2024

@cipolleschi OK prettier commit removed. I'll open another PR shortly

@cipolleschi cipolleschi merged commit 7be1c65 into facebook:main Sep 17, 2024
4 checks passed
Comment on lines -80 to -87
```
ln -s $(which ccache) /usr/local/bin/gcc
ln -s $(which ccache) /usr/local/bin/g++
ln -s $(which ccache) /usr/local/bin/cc
ln -s $(which ccache) /usr/local/bin/c++
ln -s $(which ccache) /usr/local/bin/clang
ln -s $(which ccache) /usr/local/bin/clang++
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those instructions are needed for Android, why are you removing them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I was focussed on the iOS use cache and given the new script calls ccache directly I assumed they weren't needed.

I can create another PR to put it back. However is it definitely needed. I noticed this in the cmake files
https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/src/main/jni/CMakeLists.txt#L16-L21
https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/src/main/jni/CMakeLists.txt#L16-L21

I can do some testing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we would have to verify if it's still needed or not

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm so I can't even get ccache to work on android.
From my testing the ndk compiler gets used
/home/johnf/opt/Android/SDK/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++

@johnf johnf mentioned this pull request Sep 17, 2024
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.

4 participants