File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,13 @@ if [[ ${USE_MEMORY_SANITIZER} == "true" ]]; then
112
112
fi
113
113
114
114
if [[ " ${RUN_TIDY} " == " true" ]]; then
115
- CI_EXEC " mkdir -p ${BASE_SCRATCH_DIR} /iwyu/build/"
116
- CI_EXEC " git clone --depth=1 https://github.com/include-what-you-use/include-what-you-use -b clang_14 ${BASE_SCRATCH_DIR} /iwyu/include-what-you-use"
117
- CI_EXEC " cd ${BASE_SCRATCH_DIR} /iwyu/build && cmake -G 'Unix Makefiles' -DCMAKE_PREFIX_PATH=/usr/lib/llvm-14 ../include-what-you-use"
118
- CI_EXEC " cd ${BASE_SCRATCH_DIR} /iwyu/build && make install $MAKEJOBS "
115
+ export DIR_IWYU=" ${BASE_SCRATCH_DIR} /iwyu"
116
+ if [ ! -d " ${DIR_IWYU} " ]; then
117
+ CI_EXEC " mkdir -p ${DIR_IWYU} /build/"
118
+ CI_EXEC " git clone --depth=1 https://github.com/include-what-you-use/include-what-you-use -b clang_14 ${DIR_IWYU} /include-what-you-use"
119
+ CI_EXEC " cd ${DIR_IWYU} /build && cmake -G 'Unix Makefiles' -DCMAKE_PREFIX_PATH=/usr/lib/llvm-14 ../include-what-you-use"
120
+ CI_EXEC " cd ${DIR_IWYU} /build && make install $MAKEJOBS "
121
+ fi
119
122
fi
120
123
121
124
if [ -z " $DANGER_RUN_CI_ON_HOST " ]; then
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ if [ "${RUN_TIDY}" = "true" ]; then
38
38
export P_CI_DIR=" ${BASE_BUILD_DIR} /bitcoin-$HOST /src/"
39
39
CI_EXEC run-clang-tidy " ${MAKEJOBS} "
40
40
export P_CI_DIR=" ${BASE_BUILD_DIR} /bitcoin-$HOST /"
41
- CI_EXEC " python3 ${BASE_SCRATCH_DIR} /iwyu /include-what-you-use/iwyu_tool.py" \
41
+ CI_EXEC " python3 ${DIR_IWYU} /include-what-you-use/iwyu_tool.py" \
42
42
" src/compat" \
43
43
" src/init" \
44
44
" src/rpc/signmessage.cpp" \
You can’t perform that action at this time.
0 commit comments