Skip to content

Commit 9c429f6

Browse files
committed
iwyu.yml: work around missing includes for Fedora
1 parent 07ce3d7 commit 9c429f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/iwyu.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ jobs:
1717
- os: ubuntu-22.04
1818
image: "fedora:latest"
1919
stdlib: libstdc++
20+
clang_inc: '-isystem/usr/lib/clang/20/include'
2021
- os: ubuntu-22.04
2122
image: "fedora:latest"
2223
stdlib: libc++
24+
clang_inc: '-isystem/usr/lib/clang/20/include'
2325
- os: macos-13
2426
image: ""
2527
stdlib: libc++ # no libstdc++ on macOS
@@ -141,9 +143,8 @@ jobs:
141143
142144
- name: iwyu_tool
143145
run: |
144-
# -isystem/usr/lib/clang/17/include
145146
# TODO: remove -stdlib= - it should have been taken from the compilation database
146-
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
147+
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
147148
148149
- uses: actions/upload-artifact@v4
149150
if: success() || failure()

0 commit comments

Comments
 (0)