From: Sergey Kvachonok Date: Fri, 25 Mar 2016 05:47:45 +0000 (+0300) Subject: Optionally use ${CC} when compiling test utils. X-Git-Tag: yosys-0.7~289^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e14055edf06f4551f220b3875a95d8c25b8b7aae;p=yosys.git Optionally use ${CC} when compiling test utils. Default to gcc when not set. --- diff --git a/tests/tools/autotest.sh b/tests/tools/autotest.sh index 76668bede..840cb19ff 100755 --- a/tests/tools/autotest.sh +++ b/tests/tools/autotest.sh @@ -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