| ... | @@ -14,12 +14,12 @@ if(ZIG_USE_LLVM_CONFIG) | ... | @@ -14,12 +14,12 @@ if(ZIG_USE_LLVM_CONFIG) |
| 14 | while(1) | 14 | while(1) |
| 15 | unset(LLVM_CONFIG_EXE CACHE) | 15 | unset(LLVM_CONFIG_EXE CACHE) |
| 16 | find_program(LLVM_CONFIG_EXE | 16 | find_program(LLVM_CONFIG_EXE |
| 17 | NAMES llvm-config-16 llvm-config-16.0 llvm-config160 llvm-config16 llvm-config NAMES_PER_DIR | 17 | NAMES llvm-config-17 llvm-config-17.0 llvm-config170 llvm-config17 llvm-config NAMES_PER_DIR |
| 18 | PATHS | 18 | PATHS |
| 19 | "/mingw64/bin" | 19 | "/mingw64/bin" |
| 20 | "/c/msys64/mingw64/bin" | 20 | "/c/msys64/mingw64/bin" |
| 21 | "c:/msys64/mingw64/bin" | 21 | "c:/msys64/mingw64/bin" |
| 22 | "C:/Libraries/llvm-16.0.0/bin") | 22 | "C:/Libraries/llvm-17.0.0/bin") |
| 23 | | 23 | |
| 24 | if ("${LLVM_CONFIG_EXE}" STREQUAL "LLVM_CONFIG_EXE-NOTFOUND") | 24 | if ("${LLVM_CONFIG_EXE}" STREQUAL "LLVM_CONFIG_EXE-NOTFOUND") |
| 25 | if (NOT LLVM_CONFIG_ERROR_MESSAGES STREQUAL "") | 25 | if (NOT LLVM_CONFIG_ERROR_MESSAGES STREQUAL "") |
| ... | @@ -37,9 +37,9 @@ if(ZIG_USE_LLVM_CONFIG) | ... | @@ -37,9 +37,9 @@ if(ZIG_USE_LLVM_CONFIG) |
| 37 | OUTPUT_STRIP_TRAILING_WHITESPACE) | 37 | OUTPUT_STRIP_TRAILING_WHITESPACE) |
| 38 | | 38 | |
| 39 | get_filename_component(LLVM_CONFIG_DIR "${LLVM_CONFIG_EXE}" DIRECTORY) | 39 | get_filename_component(LLVM_CONFIG_DIR "${LLVM_CONFIG_EXE}" DIRECTORY) |
| 40 | if("${LLVM_CONFIG_VERSION}" VERSION_LESS 16 OR "${LLVM_CONFIG_VERSION}" VERSION_EQUAL 17 OR "${LLVM_CONFIG_VERSION}" VERSION_GREATER 17) | 40 | if("${LLVM_CONFIG_VERSION}" VERSION_LESS 17 OR "${LLVM_CONFIG_VERSION}" VERSION_EQUAL 18 OR "${LLVM_CONFIG_VERSION}" VERSION_GREATER 18) |
| 41 | # Save the error message, in case this is the last llvm-config we find | 41 | # Save the error message, in case this is the last llvm-config we find |
| 42 | list(APPEND LLVM_CONFIG_ERROR_MESSAGES "expected LLVM 16.x but found ${LLVM_CONFIG_VERSION} using ${LLVM_CONFIG_EXE}") | 42 | list(APPEND LLVM_CONFIG_ERROR_MESSAGES "expected LLVM 17.x but found ${LLVM_CONFIG_VERSION} using ${LLVM_CONFIG_EXE}") |
| 43 | | 43 | |
| 44 | # Ignore this directory and try the search again | 44 | # Ignore this directory and try the search again |
| 45 | list(APPEND CMAKE_IGNORE_PATH "${LLVM_CONFIG_DIR}") | 45 | list(APPEND CMAKE_IGNORE_PATH "${LLVM_CONFIG_DIR}") |
| ... | @@ -63,9 +63,9 @@ if(ZIG_USE_LLVM_CONFIG) | ... | @@ -63,9 +63,9 @@ if(ZIG_USE_LLVM_CONFIG) |
| 63 | if (LLVM_CONFIG_ERROR) | 63 | if (LLVM_CONFIG_ERROR) |
| 64 | # Save the error message, in case this is the last llvm-config we find | 64 | # Save the error message, in case this is the last llvm-config we find |
| 65 | if (ZIG_SHARED_LLVM) | 65 | if (ZIG_SHARED_LLVM) |
| 66 | list(APPEND LLVM_CONFIG_ERROR_MESSAGES "LLVM 16.x found at ${LLVM_CONFIG_EXE} does not support linking as a shared library") | 66 | list(APPEND LLVM_CONFIG_ERROR_MESSAGES "LLVM 17.x found at ${LLVM_CONFIG_EXE} does not support linking as a shared library") |
| 67 | else() | 67 | else() |
| 68 | list(APPEND LLVM_CONFIG_ERROR_MESSAGES "LLVM 16.x found at ${LLVM_CONFIG_EXE} does not support linking as a static library") | 68 | list(APPEND LLVM_CONFIG_ERROR_MESSAGES "LLVM 17.x found at ${LLVM_CONFIG_EXE} does not support linking as a static library") |
| 69 | endif() | 69 | endif() |
| 70 | | 70 | |
| 71 | # Ignore this directory and try the search again | 71 | # Ignore this directory and try the search again |