Skip to content

Commit

Permalink
try to debug failed cmake with openmpi + mac arm
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Jun 4, 2024
1 parent d7b298a commit 31a41be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ if [[ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]]; then
export OMPI_CXX=$CXX
export OMPI_FC=$FC
export OPAL_PREFIX=$PREFIX
export EXTRA_CMAKE="-DCDEFS=Add_ "
export EXTRA_CMAKE="-DCDEFS=Add_"
export EXTRA_CMAKE="${EXTRA_CMAKE} --debug-output --debug-trycompile"
fi

# As mpi libraries are not correctly linked in CMake scripts, use mpi wrappers for the compilers
Expand All @@ -41,6 +42,9 @@ cmake ${CMAKE_ARGS} \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DCMAKE_PREFIX_PATH="$PREFIX" \
-DCMAKE_BUILD_TYPE=Release \
.. || (cat CMakeFiles/CMakeOutput.log && cat CMakeFiles/CMakeError.log && exit 1)
.. || (
cat CMakeFiles/CMakeConfigureLog.yaml;
exit 1
)

make install -j${CPU_COUNT}

0 comments on commit 31a41be

Please sign in to comment.