File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments