diff options
Diffstat (limited to 'testsuite/testenv.sh')
-rw-r--r-- | testsuite/testenv.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/testenv.sh b/testsuite/testenv.sh index f6f271cac..a8097eb11 100644 --- a/testsuite/testenv.sh +++ b/testsuite/testenv.sh @@ -148,6 +148,15 @@ synth_tb() clean } +# Check if a C compiler is installed on this system +c_compiler_is_available () +{ + if [ -z $CC ]; then + CC="gcc" + fi + which $CC +} + # Check if a feature is present ghdl_has_feature () { |