From a31eb8bfa41262528cc4c5a1f9cd46c826597552 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 7 Jul 2026 11:43:08 +0100 Subject: [PATCH] ci, iwyu: Request IPC file generation explicitly Fixes a part of https://github.com/bitcoin/bitcoin/issues/35361. --- ci/test/00_setup_env_native_iwyu.sh | 5 ++++- ci/test/03_test_script.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/test/00_setup_env_native_iwyu.sh b/ci/test/00_setup_env_native_iwyu.sh index 14c367bb31c..e3b71b69cd1 100755 --- a/ci/test/00_setup_env_native_iwyu.sh +++ b/ci/test/00_setup_env_native_iwyu.sh @@ -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} \ diff --git a/ci/test/03_test_script.sh b/ci/test/03_test_script.sh index 834473b1ada..dad3fab8284 100755 --- a/ci/test/03_test_script.sh +++ b/ci/test/03_test_script.sh @@ -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