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

Fix ccache on M1 #4764

Merged
merged 1 commit into from Aug 11, 2022
Merged

Fix ccache on M1 #4764

merged 1 commit into from Aug 11, 2022

Conversation

takameyer
Copy link
Contributor

Homebrew installs ccache in a different directory on the M1.
This checks if ccache exists in the path rather then a specific location.

☑️ ToDos

  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 🚦 Tests
  • 🔀 Executed flexible sync tests locally if modifying flexible sync
  • 📦 Updated internal package version in consuming package.jsons (if updating internal packages)
  • 📱 Check the React Native/other sample apps work if necessary
  • 📝 Public documentation PR created or is not necessary
  • 💥 Breaking label has been applied or is not necessary

If this PR adds or changes public API's:

  • typescript definitions file is updated
  • jsdoc files updated
  • Chrome debug API is updated if API is available on React Native

export CCACHE_MAXSIZE=10G
export CCACHE_CPP2=true
export CCACHE_HARDLINK=true
export CCACHE_SLOPPINESS=file_macro,time_macros,include_file_mtime,include_file_ctime,file_stat_matches
exec /usr/local/bin/ccache /usr/bin/clang++ "$@"
exec ccache /usr/bin/clang++ "$@"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
exec ccache /usr/bin/clang++ "$@"
exec ccache clang++ "$@"

I wonder if clang++ could also just be read from the path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As long as it's in the path...which it should be.

Copy link
Member

@kneth kneth left a comment

Choose a reason for hiding this comment

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

It might be a good idea to add something like "Remember to add the location of ccache to your PATH" somewhere in contrib/building.md

Homebrew installs ccache in a different directory on the M1.
This checks if ccache exists in the path rather then a specific location.
@takameyer takameyer merged commit 097c85b into master Aug 11, 2022
@takameyer takameyer deleted the andrew/fix-ccache-m1 branch August 11, 2022 07:51
amtep pushed a commit to amtep/realm-js that referenced this pull request Aug 11, 2022
Homebrew installs ccache in a different directory on the M1.
This checks if ccache exists in the path rather then a specific location.
amtep pushed a commit to amtep/realm-js that referenced this pull request Aug 12, 2022
Homebrew installs ccache in a different directory on the M1.
This checks if ccache exists in the path rather then a specific location.
kneth added a commit that referenced this pull request Aug 15, 2022
kneth added a commit that referenced this pull request Aug 15, 2022
amtep pushed a commit to amtep/realm-js that referenced this pull request Aug 16, 2022
Homebrew installs ccache in a different directory on the M1.
This checks if ccache exists in the path rather then a specific location.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants