Skip to content

Commit b58331e

Browse files
authored
use clang-7 with iwyu
1 parent e7f696c commit b58331e

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/verify-build.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ jobs:
196196
os: ubuntu-latest
197197
build-type: iwyu
198198
compiler-family: clang
199-
c-compiler: clang
200-
cc-compiler: clang++
199+
c-compiler: clang-7
200+
cc-compiler: clang-7++
201201
debug: nodebug
202202
coverage: nocoverage
203203
steps:
@@ -236,13 +236,13 @@ jobs:
236236

237237
- name: Install IWYU if needed
238238
run: |
239-
sudo apt-get install iwyu cmake llvm-dev libclang-dev clang-5.0 clang-6.0 clang-7 clang-8 clang-9
239+
sudo apt-get install cmake llvm-dev libclang-dev clang-5.0 clang-6.0 clang-7 clang-8 clang-9
240240
if: ${{ matrix.build-type == 'iwyu' }}
241241

242242
# Installing iwyu manually because clang and iwyu paths won't match on Ubuntu otherwise.
243243
- name: Install IWYU if requested
244244
run: |
245-
CLANG_VERSION=`clang --version | grep version | cut -f3 -d' ' | cut -f1 -d'-'` ;
245+
CLANG_VERSION=`clang-7 --version | grep version | cut -f3 -d' ' | cut -f1 -d'-'` ;
246246
CLANG_PKG_VERSION=`echo $CLANG_VERSION | cut -f1,2 -d'.'`
247247
CLANG_ROOT_PATH="/usr/lib/llvm-${CLANG_PKG_VERSION}"
248248
CLANG_PREFIX_PATH="${CLANG_ROOT_PATH}/lib/clang/${CLANG_VERSION}" ;
@@ -360,8 +360,7 @@ jobs:
360360
run: |
361361
cd build ;
362362
if [ "$BUILD_TYPE" = "iwyu" ]; then
363-
strings /usr/bin/iwyu | grep LLVM ;
364-
clang -print-resource-dir ;
363+
clang-7 -print-resource-dir ;
365364
/usr/local/bin/include-what-you-use -print-resource-dir ;
366365
make -k CXX='/usr/local/bin/include-what-you-use -Xiwyu --mapping_file=${top_builddir}/../custom_iwyu.imp' CXXFLAGS="-std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT $CXXFLAGS" ;
367366
if [ $? -ne 2 ]; then

0 commit comments

Comments
 (0)