aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vpi/vpi001/testsuite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/vpi/vpi001/testsuite.sh')
-rwxr-xr-xtestsuite/vpi/vpi001/testsuite.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/vpi/vpi001/testsuite.sh b/testsuite/vpi/vpi001/testsuite.sh
index a3edac791..4bbded6b4 100755
--- a/testsuite/vpi/vpi001/testsuite.sh
+++ b/testsuite/vpi/vpi001/testsuite.sh
@@ -5,7 +5,7 @@
analyze mydesign.vhdl
elab myentity
-if ghdl_has_feature myentity vpi; then
+if c_compiler_is_available && ghdl_has_feature myentity vpi; then
$GHDL --vpi-compile -v gcc -c vpi1.c
$GHDL --vpi-link -v gcc -o vpi1.vpi vpi1.o