From cc64e6cc8e9548dafc268af825638b82a52842ae Mon Sep 17 00:00:00 2001 From: Tom Reynolds Date: Wed, 12 Feb 2014 00:55:29 +0100 Subject: [PATCH] fix detection for CXX=clang --- mk/linux/build-mg.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/linux/build-mg.sh b/mk/linux/build-mg.sh index 726fe734..174e355f 100755 --- a/mk/linux/build-mg.sh +++ b/mk/linux/build-mg.sh @@ -174,12 +174,12 @@ if [ $CLANG_FORCED = 1 ]; then # If both the $CC and $CXX environment variable point to something containing # "clang", use whatever these environment variables point to. elif [ "`echo $CC | grep -oF 'clang'`" = 'clang' -a "`echo $CXX | grep -oF 'clang'`" = 'clang' ]; then - if [ `echo $CC | grep -Fq '/'` = '/' ]; then + if [ "`echo $CC | grep -Fo '/'`" = '/' ]; then CLANG_CC=$CC else CLANG_CC=`which $CC` fi - if [ `echo $CXX | grep -Fq '/'` = '/' ]; then + if [ "`echo $CXX | grep -Fo '/'`" = '/' ]; then CLANG_CXX=$CXX else CLANG_CXX=`which $CXX`