From 83baefd831a31704f7ee31e41d50e63ba531dbb0 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 23 Mar 2018 09:11:38 -0500 Subject: [PATCH] build_proton: Require gcc >= 5.3 --- build_proton.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build_proton.sh b/build_proton.sh index ee87be6d..eaf370dd 100755 --- a/build_proton.sh +++ b/build_proton.sh @@ -183,6 +183,14 @@ else CC="ccache gcc" AMD64_WRAPPER="schroot --chroot steamrt_scout_beta_amd64 --" I386_WRAPPER="schroot --chroot steamrt_scout_beta_i386 --" + + gcc_ver=$($AMD64_WRAPPER gcc -v 2>&1 | grep 'gcc version' | cut -d' ' -f3) + gcc_maj=$(echo $gcc_ver | cut -d'.' -f1) + gcc_min=$(echo $gcc_ver | cut -d'.' -f2) + if [ $gcc_maj -lt 5 -o '(' $gcc_maj -eq 5 -a $gcc_min -lt 3 ')' ]; then + echo "need gcc >= 5.3" + exit 1 + fi fi if [ "$PLATFORM" == "Darwin" ]; then