ci, iwyu: Request IPC file generation explicitly

Fixes a part of https://github.com/bitcoin/bitcoin/issues/35361.
This commit is contained in:
Hennadii Stepanov
2026-07-07 11:43:08 +01:00
parent 8a4bab8e97
commit a31eb8bfa4
2 changed files with 5 additions and 2 deletions

View File

@@ -17,7 +17,10 @@ export RUN_FUNCTIONAL_TESTS=false
export RUN_FUZZ_TESTS=false
export RUN_CHECK_DEPS=false
export RUN_IWYU=true
export GOAL="codegen"
# Adding non-codegen targets to the build goal is a workaround
# for https://gitlab.kitware.com/cmake/cmake/-/work_items/27862
# and https://github.com/bitcoin-core/libmultiprocess/issues/284.
export GOAL="codegen mp_headers mptest_headers bitcoin_ipc_headers bitcoin_ipc_test_headers bitcoin_ipc_fuzz_headers"
export BITCOIN_CONFIG="\
--preset dev-mode -DBUILD_GUI=OFF \
-DCMAKE_C_COMPILER=clang-${IWYU_LLVM_V} \

View File

@@ -123,7 +123,7 @@ cmake -S "$BASE_ROOT_DIR" -B "$BASE_BUILD_DIR" "${CMAKE_ARGS[@]}" || (
false
)
if [[ "${GOAL}" != all && "${GOAL}" != codegen ]]; then
if [[ "${GOAL}" != all && "${GOAL}" != *codegen* ]]; then
GOAL="all ${GOAL}"
fi