| ... | ... | @@ -55,13 +55,13 @@ elseif("${ZIG_TARGET_TRIPLE}" STREQUAL "native") |
| 55 | 55 | OUTPUT_STRIP_TRAILING_WHITESPACE) |
| 56 | 56 | |
| 57 | 57 | if("${LLVM_CONFIG_VERSION}" VERSION_LESS 10) |
| 58 | | message(FATAL_ERROR "expected LLVM 10.x but found ${LLVM_CONFIG_VERSION}") |
| 58 | message(FATAL_ERROR "expected LLVM 10.x but found ${LLVM_CONFIG_VERSION} using ${LLVM_CONFIG_EXE}") |
| 59 | 59 | endif() |
| 60 | 60 | if("${LLVM_CONFIG_VERSION}" VERSION_EQUAL 11) |
| 61 | | message(FATAL_ERROR "expected LLVM 10.x but found ${LLVM_CONFIG_VERSION}") |
| 61 | message(FATAL_ERROR "expected LLVM 10.x but found ${LLVM_CONFIG_VERSION} using ${LLVM_CONFIG_EXE}") |
| 62 | 62 | endif() |
| 63 | 63 | if("${LLVM_CONFIG_VERSION}" VERSION_GREATER 11) |
| 64 | | message(FATAL_ERROR "expected LLVM 10.x but found ${LLVM_CONFIG_VERSION}") |
| 64 | message(FATAL_ERROR "expected LLVM 10.x but found ${LLVM_CONFIG_VERSION} using ${LLVM_CONFIG_EXE}") |
| 65 | 65 | endif() |
| 66 | 66 | |
| 67 | 67 | execute_process( |
| ... | ... | @@ -72,7 +72,7 @@ elseif("${ZIG_TARGET_TRIPLE}" STREQUAL "native") |
| 72 | 72 | function(NEED_TARGET TARGET_NAME) |
| 73 | 73 | list (FIND LLVM_TARGETS_BUILT "${TARGET_NAME}" _index) |
| 74 | 74 | if (${_index} EQUAL -1) |
| 75 | | message(FATAL_ERROR "LLVM is missing target ${TARGET_NAME}. Zig requires LLVM to be built with all default targets enabled.") |
| 75 | message(FATAL_ERROR "LLVM (according to ${LLVM_CONFIG_EXE}) is missing target ${TARGET_NAME}. Zig requires LLVM to be built with all default targets enabled.") |
| 76 | 76 | endif() |
| 77 | 77 | endfunction(NEED_TARGET) |
| 78 | 78 | NEED_TARGET("AArch64") |