diff options
Diffstat (limited to 'testsuite/gna/bug097/testsuite.sh')
-rwxr-xr-x | testsuite/gna/bug097/testsuite.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/testsuite/gna/bug097/testsuite.sh b/testsuite/gna/bug097/testsuite.sh index b1836a423..c66369565 100755 --- a/testsuite/gna/bug097/testsuite.sh +++ b/testsuite/gna/bug097/testsuite.sh @@ -2,17 +2,19 @@ . ../../testenv.sh -if [ -z $CC ]; then - CC="gcc" -fi +if c_compiler_is_available; then + if [ -z $CC ]; then + CC="gcc" + fi -$CC -c -fPIC getrand.c -$CC -o getrand.so --shared getrand.o + $CC -c -fPIC getrand.c + $CC -o getrand.so --shared getrand.o -analyze tb.vhdl -elab_simulate tb + analyze tb.vhdl + elab_simulate tb + rm -f getrand.o getrand.so +fi clean -rm -f getrand.o getrand.so echo "Test successful" |