Skip to content

Update install-sccache with macOS support - #12548

Merged
zachhannum merged 1 commit into
mainfrom
feature/12532-sccache-dep-macos
Jan 11, 2023
Merged

zachhannum merged 1 commit into
mainfrom
feature/12532-sccache-dep-macos

Conversation

@zachhannum

Copy link
Copy Markdown
Contributor

Intent

Adresses #12532. Add ssccache support for macOS builds.

Approach

Updated the sccache install script to support installing on macOS, and update the osx/make-package script to use sccache if the SCCACHE_ENABLED environment variable is set. I tested this on arm64 macOS the build seemed to succeed.

Automated Tests

N/A

QA Notes

N/A

Documentation

N/A

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

@zachhannum
zachhannum requested review from cm421 and timtmok January 9, 2023 17:07
@timtmok

timtmok commented Jan 9, 2023

Copy link
Copy Markdown
Contributor

The package build for Mac builds twice, once each for arm64 and x86_64. I'm not sure how that works with the caching. Does it do any caching for the x86_64 part of the build?

@zachhannum

Copy link
Copy Markdown
Contributor Author

@timtmok I did update the make-package script to use sccache for both the arm64 and x86_64 builds. They will both use the same cache in s3, but it is my understanding that those files will be cached separately for different architectures. See here: https://github.com/mozilla/sccache/blob/main/docs/Caching.md

@timtmok

timtmok commented Jan 9, 2023

Copy link
Copy Markdown
Contributor

Ah right, it should be good. I also forgot that the dependency installer scripts also install for each arch. Looks good!

@cm421 cm421 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice! LGTM

@zachhannum
zachhannum merged commit c4f3450 into main Jan 11, 2023
@zachhannum
zachhannum deleted the feature/12532-sccache-dep-macos branch January 11, 2023 13:57
@zachhannum zachhannum linked an issue Jan 11, 2023 that may be closed by this pull request
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.

Add sccache dependency for macOS builds

3 participants