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

Support -Xclang -no-opaque-pointers in clang #1181

Merged
merged 2 commits into from
Jun 9, 2022

Conversation

bc-lee
Copy link
Contributor

@bc-lee bc-lee commented 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

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
@codecov-commenter
Copy link

Codecov Report

Merging #1181 (b6f5f69) into main (963f137) will decrease coverage by 0.36%.
The diff coverage is 50.00%.

❗ Current head b6f5f69 differs from pull request most recent head 5931f62. Consider uploading reports for the commit 5931f62 to get more accurate results

@@            Coverage Diff             @@
##             main    #1181      +/-   ##
==========================================
- Coverage   29.15%   28.79%   -0.37%     
==========================================
  Files          47       47              
  Lines       16735    16736       +1     
  Branches     8013     8008       -5     
==========================================
- Hits         4879     4819      -60     
- Misses       6784     6827      +43     
- Partials     5072     5090      +18     
Impacted Files Coverage Δ
src/compiler/clang.rs 51.92% <50.00%> (-1.02%) ⬇️
src/test/utils.rs 36.36% <0.00%> (-3.04%) ⬇️
src/azure/blobstore.rs 20.19% <0.00%> (-2.47%) ⬇️
src/jobserver.rs 46.80% <0.00%> (-2.13%) ⬇️
src/compiler/gcc.rs 55.60% <0.00%> (-1.91%) ⬇️
src/util.rs 33.75% <0.00%> (-1.28%) ⬇️
src/mock_command.rs 50.93% <0.00%> (-1.13%) ⬇️
src/compiler/c.rs 37.41% <0.00%> (-0.53%) ⬇️
src/cache/cache.rs 35.64% <0.00%> (-0.50%) ⬇️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 963f137...5931f62. Read the comment docs.

@sylvestre sylvestre merged commit fce7af8 into mozilla:main Jun 9, 2022
@bc-lee bc-lee deleted the feature/xclang-no-opaque-pointer branch June 9, 2022 19:53
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.

3 participants