Skip to content

Commit 067d7ea

Browse files
dpiparoguitargeek
authored andcommitted
[cmake] Build clad with one core only
fixes #16654
1 parent 83a448a commit 067d7ea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

interpreter/cling/tools/plugins/clad/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ ExternalProject_Add(
8383
-DLLVM_DIR=${LLVM_BINARY_DIR}
8484
-DCLANG_INCLUDE_DIRS=${CLANG_INCLUDE_DIRS}
8585
${_clad_extra_cmake_args}
86-
BUILD_COMMAND ${CMAKE_COMMAND} --build . --config ${_clad_build_type}
87-
INSTALL_COMMAND ${CMAKE_COMMAND} --build . --config ${_clad_build_type} --target install
86+
# FIXME
87+
# Building with 1 core is a temporary workaround for #16654 and has to be
88+
# there until the behaviour of the clad build on ubuntu 24.10 is understood.
89+
# The performance penalty in the build is negligible.
90+
BUILD_COMMAND ${CMAKE_COMMAND} --build . --config ${_clad_build_type} -j 1
91+
INSTALL_COMMAND ${CMAKE_COMMAND} --build . --config ${_clad_build_type} -j 1 --target install
8892
BUILD_BYPRODUCTS ${CLAD_BYPRODUCTS}
8993
${_clad_cmake_logging_settings}
9094
# We need the target clangBasic to be built before building clad. However, we

0 commit comments

Comments
 (0)