Skip to content

Commit 180366e

Browse files
committed
Use gcc-8 instead of just gcc (which may be 9 on arch)
1 parent 7befad8 commit 180366e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Dockerfiles/install-archlinux.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pacman -Syu --noconfirm --needed \
3030

3131
if $shared; then
3232
pacman -S --noconfirm --needed \
33-
gcc \
3433
java-environment=8 \
3534
libarchive \
3635
protobuf \

tensorflow_cc/cmake/build_tensorflow.sh.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ if [ "@ALLOW_CUDA@" = "ON" ] && [ -n "${CUDA_TOOLKIT_PATH}" ]; then
6767

6868
# choose the right version of CUDA compiler
6969
if [ -z "$GCC_HOST_COMPILER_PATH" ]; then
70-
if hash gcc 2>/dev/null && version_gt 8.5 `gcc -dumpversion`; then
71-
export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:-"/usr/bin/gcc"}
70+
if hash gcc-8 2>/dev/null && version_gt 8.5 `gcc-8 -dumpversion`; then
71+
export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:-"/usr/bin/gcc-8"}
7272
elif hash gcc-7 2>/dev/null && version_gt 7.5 `gcc-7 -dumpversion`; then
7373
export GCC_HOST_COMPILER_PATH=${GCC_HOST_COMPILER_PATH:-"/usr/bin/gcc-7"}
7474
elif hash gcc-6 2>/dev/null && version_gt 6.4 `gcc-6 -dumpversion`; then

0 commit comments

Comments
 (0)