Skip to content

Commit

Permalink
[cmake] Build clad with one core only
Browse files Browse the repository at this point in the history
fixes #16654
  • Loading branch information
dpiparo committed Oct 16, 2024
1 parent b70d85a commit 31ed063
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions interpreter/cling/tools/plugins/clad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31ed063

Please sign in to comment.