Commit 0e9a5be7 authored by Tobias Droste's avatar Tobias Droste Committed by Emil Velikov

configure.ac: Create correct LLVM_VERSION_INT with minor >= 10

This makes sure that we handle LLVM minor version >= 10 correctly.
Signed-off-by: default avatarTobias Droste <tdroste@gmx.de>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent a66cd76b
......@@ -990,7 +990,11 @@ llvm_set_environment_variables() {
LLVM_VERSION_PATCH=0
fi
LLVM_VERSION_INT="${LLVM_VERSION_MAJOR}0${LLVM_VERSION_MINOR}"
if test "$LLVM_VERSION_MINOR" -lt 10; then
LLVM_VERSION_INT="${LLVM_VERSION_MAJOR}0${LLVM_VERSION_MINOR}"
else
LLVM_VERSION_INT="${LLVM_VERSION_MAJOR}${LLVM_VERSION_MINOR}"
fi
DEFINES="${DEFINES} -DHAVE_LLVM=0x0$LLVM_VERSION_INT -DMESA_LLVM_VERSION_PATCH=$LLVM_VERSION_PATCH"
MESA_LLVM=1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment