aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorsudden6 <sudden6@users.noreply.github.com>2022-05-30 23:42:59 +0200
committersudden6 <sudden6@users.noreply.github.com>2022-05-30 23:42:59 +0200
commit6d9b56ba0a54a896ef4cafdc1ab1ca2595a07eb4 (patch)
tree59e7acc13afeb055eeeb753e7fc7ffc72e4dc753 /configure
parent196b09e4568e70bcfb435375e47b77df154fc29f (diff)
downloadghdl-6d9b56ba0a54a896ef4cafdc1ab1ca2595a07eb4.tar.gz
ghdl-6d9b56ba0a54a896ef4cafdc1ab1ca2595a07eb4.tar.bz2
ghdl-6d9b56ba0a54a896ef4cafdc1ab1ca2595a07eb4.zip
use --version flag to check for C compiler
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 715027445..0daae1a05 100755
--- a/configure
+++ b/configure
@@ -204,7 +204,7 @@ if ! $GNATMAKE --version >/dev/null 2>&1; then
fi
# Check that compiler exists
-if ! $CC -v 2> /dev/null; then
+if ! $CC --version 2> /dev/null; then
echo "Sorry, you need a C compiler to build GHDL. See the README"
exit 1
fi