authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-02-07 12:24:55-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-02-07 12:24:55-05:00
log91baa574a5f7224b48e4499a9db0c5283d800ec3
tree051556b413ae8e7625dcb15c59c1c19dccb95282
parentf8ba50f5ed2f0d3ee3b0042d2f4057c50e68f63b
signature Commit is signed but in an unrecognized format.

build: update Findllvm.cmake for llvm 8


1 files changed, 7 insertions(+), 6 deletions(-)

cmake/Findllvm.cmake+7-6
......@@ -24,14 +24,14 @@ execute_process(
2424 OUTPUT_VARIABLE LLVM_CONFIG_VERSION
2525 OUTPUT_STRIP_TRAILING_WHITESPACE)
2626
27if("${LLVM_CONFIG_VERSION}" VERSION_LESS 7)
28 message(FATAL_ERROR "expected LLVM 7.x but found ${LLVM_CONFIG_VERSION}")
27if("${LLVM_CONFIG_VERSION}" VERSION_LESS 8)
28 message(FATAL_ERROR "expected LLVM 8.x but found ${LLVM_CONFIG_VERSION}")
2929endif()
30if("${LLVM_CONFIG_VERSION}" VERSION_EQUAL 8)
31 message(FATAL_ERROR "expected LLVM 7.x but found ${LLVM_CONFIG_VERSION}")
30if("${LLVM_CONFIG_VERSION}" VERSION_EQUAL 9)
31 message(FATAL_ERROR "expected LLVM 8.x but found ${LLVM_CONFIG_VERSION}")
3232endif()
33if("${LLVM_CONFIG_VERSION}" VERSION_GREATER 8)
34 message(FATAL_ERROR "expected LLVM 7.x but found ${LLVM_CONFIG_VERSION}")
33if("${LLVM_CONFIG_VERSION}" VERSION_GREATER 9)
34 message(FATAL_ERROR "expected LLVM 8.x but found ${LLVM_CONFIG_VERSION}")
3535endif()
3636
3737execute_process(
......@@ -57,6 +57,7 @@ NEED_TARGET("NVPTX")
5757NEED_TARGET("PowerPC")
5858NEED_TARGET("Sparc")
5959NEED_TARGET("SystemZ")
60NEED_TARGET("WebAssembly")
6061NEED_TARGET("X86")
6162NEED_TARGET("XCore")
6263