Skip to content

Commit fd7558d

Browse files
authored
iwyu.yml: work around missing includes for Fedora [skip ci] (danmar#7625)
1 parent 06b490f commit fd7558d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/iwyu.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ jobs:
2020
- os: ubuntu-22.04
2121
image: "fedora:latest"
2222
stdlib: libstdc++
23-
- os: ubuntu-22.04
24-
image: "fedora:latest"
25-
stdlib: libc++
23+
clang_inc: '-isystem/usr/lib/clang/20/include'
24+
# TODO: disable because it currently fails with "error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header."
25+
#- os: ubuntu-22.04
26+
# image: "fedora:latest"
27+
# stdlib: libc++
28+
# clang_inc: '-isystem/usr/lib/clang/20/include'
2629
- os: macos-13
2730
image: ""
2831
stdlib: libc++ # no libstdc++ on macOS
@@ -144,9 +147,8 @@ jobs:
144147
145148
- name: iwyu_tool
146149
run: |
147-
# -isystem/usr/lib/clang/17/include
148150
# 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
151+
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
150152
151153
- uses: actions/upload-artifact@v4
152154
if: success() || failure()

0 commit comments

Comments
 (0)