Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
q10 committed Feb 17, 2024
1 parent af3829f commit bbb3a9e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/scripts/utils_build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ __conda_install_gcc () {
# shellcheck disable=SC2155,SC2086
local cxx_path=$(conda run ${env_prefix} printenv CXX)

print_exec ln -s "${cc_path}" "$(dirname "$cc_path")/cc"
print_exec ln -s "${cc_path}" "$(dirname "$cc_path")/gcc"
print_exec ln -s "${cxx_path}" "$(dirname "$cxx_path")/c++"
print_exec ln -s "${cxx_path}" "$(dirname "$cxx_path")/g++"
print_exec ln -sf "${cc_path}" "$(dirname "$cc_path")/cc"
print_exec ln -sf "${cc_path}" "$(dirname "$cc_path")/gcc"
print_exec ln -sf "${cxx_path}" "$(dirname "$cxx_path")/c++"
print_exec ln -sf "${cxx_path}" "$(dirname "$cxx_path")/g++"
}

__conda_install_clang () {
Expand All @@ -114,10 +114,10 @@ __conda_install_clang () {
# shellcheck disable=SC2155,SC2086
local cxx_path=$(conda run ${env_prefix} which clang++)

print_exec ln -s "${cc_path}" "$(dirname "$cc_path")/cc"
print_exec ln -s "${cc_path}" "$(dirname "$cc_path")/gcc"
print_exec ln -s "${cxx_path}" "$(dirname "$cxx_path")/c++"
print_exec ln -s "${cxx_path}" "$(dirname "$cxx_path")/g++"
print_exec ln -sf "${cc_path}" "$(dirname "$cc_path")/cc"
print_exec ln -sf "${cc_path}" "$(dirname "$cc_path")/gcc"
print_exec ln -sf "${cxx_path}" "$(dirname "$cxx_path")/c++"
print_exec ln -sf "${cxx_path}" "$(dirname "$cxx_path")/g++"

echo "[INSTALL] Updating LD_LIBRARY_PATH ..."
# shellcheck disable=SC2155,SC2086
Expand Down Expand Up @@ -201,6 +201,7 @@ install_cxx_compiler () {
# NOTE: We unconditionally install libstdc++ here because CUDA only supports
# libstdc++, even if host compiler is set to Clang:
# https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#host-compiler-support-policy
# https://forums.developer.nvidia.com/t/cuda-issues-with-clang-compiler/177589/8
__conda_install_gcc

# Install the C/C++ compiler
Expand Down

0 comments on commit bbb3a9e

Please sign in to comment.