diff options
author | Tobias Droste <[email protected]> | 2016-11-19 02:39:12 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-12-05 14:43:47 +0000 |
commit | 0e9a5be7e74fa2a9bd2a634ef60822bd6600ca1d (patch) | |
tree | bcfbe370ac13fa4637adbc88be8a1d95ffbde0db | |
parent | a66cd76b16cf561c102314a6ee021727c03e52f7 (diff) |
configure.ac: Create correct LLVM_VERSION_INT with minor >= 10
This makes sure that we handle LLVM minor version >= 10 correctly.
Signed-off-by: Tobias Droste <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e731cf9c80e..adca49d31ea 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |