Skip to content

Commit

Permalink
don't try to create already-existing symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Dec 3, 2023
1 parent 6bd78be commit f2e8fa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion recipe/install-clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ CHOST=${macos_machine}

pushd "${PREFIX}"/bin
ln -s clang ${CHOST}-clang
if [[ "${CBUILD}" != ${CHOST} ]]; then
if [[ "${CBUILD}" != ${CHOST} ]] && [[ "${target_platform}" != linux-* ]]; then
# on linux, the `clang` package already has a $TRIPLE-clang, see
# https://github.com/conda-forge/clangdev-feedstock/pull/251
ln -s clang ${CBUILD}-clang
fi
popd
4 changes: 3 additions & 1 deletion recipe/install-clangxx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ echo CHOST is ${CHOST}

pushd "${PREFIX}"/bin
ln -s clang++ ${CHOST}-clang++
if [[ "${CHOST}" != "${CBUILD}" ]]; then
if [[ "${CHOST}" != "${CBUILD}" ]] && [[ "${target_platform}" != linux-* ]]; then
# on linux, the `clangxx` package already has a $TRIPLE-clang++, see
# https://github.com/conda-forge/clangdev-feedstock/pull/251
ln -s clang++ ${CBUILD}-clang++
fi
popd

0 comments on commit f2e8fa0

Please sign in to comment.