configure: Properly detect clang version > 9

Change-Id: Ide083442fddc6f3f103f1ff3811a92d5db5c75a1
This commit is contained in:
Alexander von Gluck IV 2020-07-08 14:38:47 -05:00
parent 9593c05ac5
commit 583db6f559

2
configure vendored
View File

@ -775,7 +775,7 @@ while [ $# -gt 0 ] ; do
set_variable crossToolsPrefix_$targetArch llvm-
fi
clangVersion=`$HAIKU_clang -v 2>&1 | head -1 | cut -d " " -f3`
if [ `echo $clangVersion | head -c 1` -lt 7 ]; then
if [ `echo $clangVersion | cut -d'.' -f1` -lt 7 ]; then
echo "Haiku requires Clang 7 or better to build, but you have $clangVersion."
echo "Please install a newer version."
exit 1