Skip to content

Commit

Permalink
Build clad with one core only
Browse files Browse the repository at this point in the history
fixes #16654
  • Loading branch information
dpiparo authored and jenkins committed Oct 16, 2024
1 parent 75d0a6c commit a0eda35
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 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 a0eda35

Please sign in to comment.