File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -379,10 +379,14 @@ install_build_tools () {
379
379
echo " [INSTALL] Adding symlink librhash.so.0, which is needed by CMake ..."
380
380
# shellcheck disable=SC2155,SC2086
381
381
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
383
385
384
386
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
386
390
387
391
# For some reason, the build package for Python 3.12+ is missing from conda,
388
392
# so we have to install through pip instead.
You can’t perform that action at this time.
0 commit comments