File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 - os : macos-13
1818 image : " "
1919 stdlib : libc++ # no libstdc++ on macOS
20+ mapping_file_opt : ' -Xiwyu --mapping_file=./macos.imp'
2021 fail-fast : false
2122
2223 runs-on : ${{ matrix.os }}
9899 install-deps : false
99100 cache : true
100101
102+ - name : Build macOS mappings
103+ run : |
104+ wget https://raw.githubusercontent.com/include-what-you-use/include-what-you-use/master/mapgen/iwyu-mapgen-apple-libc.py
105+ python3 iwyu-mapgen-qt.py $(xcrun --show-sdk-path)/usr/include > macos.imp
106+
101107 - name : Prepare CMake
102108 run : |
103109 # TODO: why does it build dmake in the next step?
@@ -125,14 +131,20 @@ jobs:
125131 run : |
126132 # -isystem/usr/lib/clang/17/include
127133 # TODO: remove -stdlib= - it should have been taken from the compilation database
128- 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 }} > iwyu.log
134+ 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
129135
130136 - uses : actions/upload-artifact@v4
131137 if : success() || failure()
132138 with :
133139 name : Compilation Database (include-what-you-use - ${{ matrix.os }} ${{ matrix.stdlib }})
134140 path : ./cmake.output/compile_commands.json
135141
142+ - uses : actions/upload-artifact@v4
143+ if : ${{ contains(matrix.os, 'macos') && (success() || failure()) }}
144+ with :
145+ name : macOS Mappings
146+ path : ./macos.imp
147+
136148 - uses : actions/upload-artifact@v4
137149 if : success() || failure()
138150 with :
You can’t perform that action at this time.
0 commit comments