File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pacman -Syu --noconfirm --needed \
3030
3131if $shared ; then
3232 pacman -S --noconfirm --needed \
33- gcc7 \
33+ gcc \
3434 java-environment=8 \
3535 libarchive \
3636 protobuf \
Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ if [ "@ALLOW_CUDA@" = "ON" ] && [ -n "${CUDA_TOOLKIT_PATH}" ]; then
6868
6969 # choose the right version of CUDA compiler
7070 if [ -z " $GCC_HOST_COMPILER_PATH " ]; then
71- if hash gcc-7 2> /dev/null && version_gt 7.5 ` gcc-7 -dumpversion` ; then
71+ if hash gcc 2> /dev/null && version_gt 8.5 ` gcc -dumpversion` ; then
72+ export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc" }
73+ elif hash gcc-7 2> /dev/null && version_gt 7.5 ` gcc-7 -dumpversion` ; then
7274 export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc-7" }
7375 elif hash gcc-6 2> /dev/null && version_gt 6.4 ` gcc-6 -dumpversion` ; then
7476 export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:- " /usr/bin/gcc-6" }
You can’t perform that action at this time.
0 commit comments