-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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 detection of ccache on macOS #97810
Improve detection of ccache on macOS #97810
Conversation
4b97022
to
a778070
Compare
a778070
to
1d3893c
Compare
Friendly remainder |
1d3893c
to
c65b350
Compare
Friendly remainder |
c65b350
to
db3c8ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me.
Note that on my macOS system, CCACHE
wasn't set by brew install ccache
, so I opted to prepend PATH
with its binaries from /opt/homebrew
as advised by the post-install message. It works without this PR in this situation, but I think this PR still makes sense as not everyone would want to modify their PATH
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be working fine, CCACHE usually is not set on macOS and wrappers are used instead (will work without this PR), but you can set it to /opt/homebrew/opt/ccache/bin/ccache
(for homebrew install).
Compiler version checks need adjustment ("Couldn't parse CXX environment variable to infer compiler version."
), I guess doesn't like space in the executable name.
@pafuent Could you look into fixing this too? |
Before this commit, ccache where only used on Mac when `OSXCROSS_ROOT` was defined. Now, it could be used even when that envirnment variable is not defined.
db3c8ec
to
7c4c110
Compare
Thanks! |
Before this commit, ccache where only used on Mac when
OSXCROSS_ROOT
was defined. Now, it could be used even when that environment variable is not defined.