Skip to content

Commit 47e2ac2

Browse files
committed
iwyu.yml: work around missing includes for Fedora [skip ci]
1 parent ca83f56 commit 47e2ac2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/iwyu.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
- os: ubuntu-22.04
2121
image: "fedora:latest"
2222
stdlib: libstdc++
23+
clang_inc: '-isystem/usr/lib/clang/20/include'
2324
- os: ubuntu-22.04
2425
image: "fedora:latest"
2526
stdlib: libc++
27+
clang_inc: '-isystem/usr/lib/clang/20/include'
2628
- os: macos-13
2729
image: ""
2830
stdlib: libc++ # no libstdc++ on macOS
@@ -144,9 +146,8 @@ jobs:
144146
145147
- name: iwyu_tool
146148
run: |
147-
# -isystem/usr/lib/clang/17/include
148149
# TODO: remove -stdlib= - it should have been taken from the compilation database
149-
iwyu_tool -p cmake.output -j $(nproc) -- -w -Xiwyu --max_line_length=1024 -Xiwyu --comment_style=long -Xiwyu --quoted_includes_first -Xiwyu --update_comments -stdlib=${{ matrix.stdlib }} ${{ matrix.mapping_file_opt }} > iwyu.log
150+
iwyu_tool -p cmake.output -j $(nproc) -- -w -Xiwyu --max_line_length=1024 -Xiwyu --comment_style=long -Xiwyu --quoted_includes_first -Xiwyu --update_comments -stdlib=${{ matrix.stdlib }} ${{ matrix.mapping_file_opt }} ${{ matrix.clang_inc }} > iwyu.log
150151
151152
- uses: actions/upload-artifact@v4
152153
if: success() || failure()

0 commit comments

Comments
 (0)