From a0eda35180a16c19acddb625acf7e1fcee74b321 Mon Sep 17 00:00:00 2001 From: Danilo Piparo Date: Tue, 15 Oct 2024 08:18:44 +0200 Subject: [PATCH] Build clad with one core only fixes #16654 --- tools/plugins/clad/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/plugins/clad/CMakeLists.txt b/tools/plugins/clad/CMakeLists.txt index 6527060a7..2f4aa2dcd 100644 --- a/tools/plugins/clad/CMakeLists.txt +++ b/tools/plugins/clad/CMakeLists.txt @@ -95,8 +95,12 @@ ExternalProject_Add( -DLLVM_DIR=${LLVM_BINARY_DIR} -DCLANG_INCLUDE_DIRS=${CLANG_INCLUDE_DIRS} ${_clad_extra_cmake_args} - BUILD_COMMAND ${CMAKE_COMMAND} --build . ${EXTRA_BUILD_ARGS} - INSTALL_COMMAND ${CMAKE_COMMAND} --build . ${EXTRA_BUILD_ARGS} --target install + # FIXME + # Building with 1 core is a temporary workaround for #16654 and has to be + # there until the behaviour of the clad build on ubuntu 24.10 is understood. + # The performance penalty in the build is negligible. + BUILD_COMMAND ${CMAKE_COMMAND} --build . ${EXTRA_BUILD_ARGS} -j 1 + INSTALL_COMMAND ${CMAKE_COMMAND} --build . ${EXTRA_BUILD_ARGS} -j 1 --target install BUILD_BYPRODUCTS ${CLAD_BYPRODUCTS} ${_clad_extra_settings} # We need the target clangBasic to be built before building clad. However, we