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

sccache is not caching anything on mac #971

Open
piscisaureus opened this issue May 18, 2022 · 1 comment
Open

sccache is not caching anything on mac #971

piscisaureus opened this issue May 18, 2022 · 1 comment

Comments

@piscisaureus
Copy link
Member

This is due to the fact chromium's build uses at least one build flag that sccache doesn't understand (so it refuses to cache).

Upgrading our (dated) version of sccache to the latest (0.3.0) does not help.
(It actually makes things worse as 0.3.0 also caches nothing on Windows.)

Unsupported flags:

  • -Xclang -no-opaque-pointers
  • (there might be more)
bc-lee added a commit to bc-lee/sccache that referenced this issue Jun 6, 2022
Some projects, such as chromium, have recently been using
`-Xclang -no-opaque-pointers` [1] to deal with the issue of changing
opaque pointers in llvm[2], but the current sccache cannot handle that
flag.

This patch is to teach sccache to parse those flags so that it can solve
issues like [3].

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3584317
[2] https://llvm.org/docs/OpaquePointers.html
[3] denoland/rusty_v8#971
sylvestre pushed a commit to mozilla/sccache that referenced this issue Jun 9, 2022
Some projects, such as chromium, have recently been using
`-Xclang -no-opaque-pointers` [1] to deal with the issue of changing
opaque pointers in llvm[2], but the current sccache cannot handle that
flag.

This patch is to teach sccache to parse those flags so that it can solve
issues like [3].

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3584317
[2] https://llvm.org/docs/OpaquePointers.html
[3] denoland/rusty_v8#971
@lucacasonato
Copy link
Member

This has been fixed in sscache@main. See mozilla/sccache#1181. Thanks @bc-lee!

sad-sage pushed a commit to sad-sage/sccache that referenced this issue Aug 4, 2022
Some projects, such as chromium, have recently been using
`-Xclang -no-opaque-pointers` [1] to deal with the issue of changing
opaque pointers in llvm[2], but the current sccache cannot handle that
flag.

This patch is to teach sccache to parse those flags so that it can solve
issues like [3].

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3584317
[2] https://llvm.org/docs/OpaquePointers.html
[3] denoland/rusty_v8#971
emabrey pushed a commit to emabrey/sccache that referenced this issue Aug 10, 2022
Some projects, such as chromium, have recently been using
`-Xclang -no-opaque-pointers` [1] to deal with the issue of changing
opaque pointers in llvm[2], but the current sccache cannot handle that
flag.

This patch is to teach sccache to parse those flags so that it can solve
issues like [3].

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3584317
[2] https://llvm.org/docs/OpaquePointers.html
[3] denoland/rusty_v8#971
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

No branches or pull requests

2 participants