mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
configure: Properly detect clang version > 9
Change-Id: Ide083442fddc6f3f103f1ff3811a92d5db5c75a1
This commit is contained in:
parent
9593c05ac5
commit
583db6f559
2
configure
vendored
2
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user