Optionally use ${CC} when compiling test utils.
authorSergey Kvachonok <ravenexp@gmail.com>
Fri, 25 Mar 2016 05:47:45 +0000 (08:47 +0300)
committerSergey Kvachonok <ravenexp@gmail.com>
Fri, 25 Mar 2016 07:35:42 +0000 (10:35 +0300)
Default to gcc when not set.

tests/tools/autotest.sh

index 76668bedefd493408b96c429ca6fca143ca7f177..840cb19ffc3868a371ea458394c8aab3b1ff7511 100755 (executable)
@@ -16,7 +16,7 @@ toolsdir="$(cd $(dirname $0); pwd)"
 warn_iverilog_git=false
 
 if [ ! -f $toolsdir/cmp_tbdata -o $toolsdir/cmp_tbdata.c -nt $toolsdir/cmp_tbdata ]; then
-       ( set -ex;  gcc -Wall -o $toolsdir/cmp_tbdata $toolsdir/cmp_tbdata.c; ) || exit 1
+       ( set -ex;  ${CC:-gcc} -Wall -o $toolsdir/cmp_tbdata $toolsdir/cmp_tbdata.c; ) || exit 1
 fi
 
 while getopts xmGl:wkjvref:s:p:n: opt; do