Skip to content

Add -fno-cxx-modules to clang's known -Xclang flags - #2717

Open
badumbatish wants to merge 1 commit into
mozilla:mainfrom
badumbatish:no_cxx_module
Open

Add -fno-cxx-modules to clang's known -Xclang flags#2717
badumbatish wants to merge 1 commit into
mozilla:mainfrom
badumbatish:no_cxx_module

Conversation

@badumbatish

Copy link
Copy Markdown

Downstream Bazel's C++ toolchain passes -Xclang -fno-cxx-modules in its compiler sanity checks. Since -fno-cxx-modules wasn't in sccache's known flag list, the xclang argument parser in gcc.rs treated it as an UnknownFlag and bailed with CannotCache.

@sylvestre

Copy link
Copy Markdown
Collaborator

please add a test

@codecov-commenter

codecov-commenter commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.92%. Comparing base (8825b4a) to head (4d17147).
⚠️ Report is 48 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2717      +/-   ##
==========================================
- Coverage   74.41%   72.92%   -1.49%     
==========================================
  Files          70       72       +2     
  Lines       39211    37285    -1926     
==========================================
- Hits        29177    27190    -1987     
- Misses      10034    10095      +61     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed-hq

codspeed-hq Bot commented Jun 4, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 58 untouched benchmarks
⏩ 6 skipped benchmarks1


Comparing badumbatish:no_cxx_module (4d17147) with main (46e96ab)

Open in CodSpeed

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Downstream Bazel's C++ toolchain passes `-Xclang -fno-cxx-modules` in its
compiler sanity checks. Since -fno-cxx-modules
wasn't in sccache's known flag list, the xclang argument parser in
gcc.rs treated it as an UnknownFlag and bailed with CannotCache.
@badumbatish

Copy link
Copy Markdown
Author

please add a test

apologies for the late actions, please see the latest PR

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