configure: Guard against using Clang < 7 for builds.
Only Clang 7+ has -fno-delete-null-pointer-checks.
This commit is contained in:
@@ -719,6 +719,12 @@ while [ $# -gt 0 ] ; do
|
|||||||
&& [ -z `get_variable buildCrossToolsMachine_$targetArch` ]; then
|
&& [ -z `get_variable buildCrossToolsMachine_$targetArch` ]; then
|
||||||
set_variable crossToolsPrefix_$targetArch llvm-
|
set_variable crossToolsPrefix_$targetArch llvm-
|
||||||
fi
|
fi
|
||||||
|
clangVersion=`$HAIKU_clang -v 2>&1 | head -1 | cut -d " " -f3`
|
||||||
|
if [ `echo $clangVersion | head -c 1` -lt 7 ]; then
|
||||||
|
echo "Haiku requires Clang 7 or better to build, but you have $clangVersion."
|
||||||
|
echo "Please install a newer version."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
targetArchs="$targetArchs $targetArch"
|
targetArchs="$targetArchs $targetArch"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user