From: Ben Gras Date: Fri, 27 Sep 2013 15:57:41 +0000 (+0000) Subject: testsh2: allow compiler fallback to gcc X-Git-Tag: v3.3.0~763 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/migration-4to9?a=commitdiff_plain;h=374af94b2b47cddd3c29aad7a2766c76a5326268;p=minix.git testsh2: allow compiler fallback to gcc . lets test work in 'pure DESTDIR' environment Change-Id: If7d45f01f20bc6369455d706b5ad47d36946fce3 --- diff --git a/test/testsh2.sh b/test/testsh2.sh index 0a30b420f..f4b4f7ad8 100755 --- a/test/testsh2.sh +++ b/test/testsh2.sh @@ -20,7 +20,13 @@ OLDPWD=`pwd` export OLDPWD # CC="exec cc -wo -F" # nonstandard flags for ACK :-( -CC=clang +if which clang 2>/dev/null +then CC=clang +elif which gcc 2>/dev/null +then CC=gcc +else echo "Can't find a compiler, skipping test" + exit 0 +fi ARCH=`arch`