Skip to content

Commit 0e6cf46

Browse files
committed
test for symlinks before creating
1 parent a1f6f92 commit 0e6cf46

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/scripts/utils_build.bash

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,14 @@ install_build_tools () {
379379
echo "[INSTALL] Adding symlink librhash.so.0, which is needed by CMake ..."
380380
# shellcheck disable=SC2155,SC2086
381381
local conda_prefix=$(conda run ${env_prefix} printenv CONDA_PREFIX)
382-
(print_exec ln -s "${conda_prefix}/lib/librhash.so" "${conda_prefix}/lib/librhash.so.0") || return 1
382+
if [ ! -e "${conda_prefix}/lib/librhash.so.0" ]; then
383+
(print_exec ln -s "${conda_prefix}/lib/librhash.so" "${conda_prefix}/lib/librhash.so.0") || return 1
384+
fi
383385

384386
echo "[INSTALL] Adding symlink libtbb.so, which is needed by HIPCC ..."
385-
(print_exec ln -s "${conda_prefix}/lib/libtbb.so.12" "${conda_prefix}/lib/libtbb.so") || return 1
387+
if [ ! -e "${conda_prefix}/lib/libtbb.so" ]; then
388+
(print_exec ln -s "${conda_prefix}/lib/libtbb.so.12" "${conda_prefix}/lib/libtbb.so") || return 1
389+
fi
386390

387391
# For some reason, the build package for Python 3.12+ is missing from conda,
388392
# so we have to install through pip instead.

0 commit comments

Comments
 (0)