@@ -17,12 +17,12 @@ if(ZIG_USE_LLVM_CONFIG)
1717 # terminate when the right LLVM version is not found.
1818 unset (LLVM_CONFIG_EXE CACHE )
1919 find_program (LLVM_CONFIG_EXE
20- NAMES llvm-config-19 llvm-config-19 .0 llvm-config190 llvm-config19 llvm-config NAMES_PER_DIR
20+ NAMES llvm-config-20 llvm-config-20 .0 llvm-config200 llvm-config20 llvm-config NAMES_PER_DIR
2121 PATHS
2222 "/mingw64/bin"
2323 "/c/msys64/mingw64/bin"
2424 "c:/msys64/mingw64/bin"
25- "C:/Libraries/llvm-19 .0.0/bin" )
25+ "C:/Libraries/llvm-20 .0.0/bin" )
2626
2727 if ("${LLVM_CONFIG_EXE} " STREQUAL "LLVM_CONFIG_EXE-NOTFOUND" )
2828 if (NOT LLVM_CONFIG_ERROR_MESSAGES STREQUAL "" )
@@ -40,9 +40,9 @@ if(ZIG_USE_LLVM_CONFIG)
4040 OUTPUT_STRIP_TRAILING_WHITESPACE)
4141
4242 get_filename_component (LLVM_CONFIG_DIR "${LLVM_CONFIG_EXE} " DIRECTORY )
43- if ("${LLVM_CONFIG_VERSION} " VERSION_LESS 19 OR "${LLVM_CONFIG_VERSION} " VERSION_EQUAL 20 OR "${LLVM_CONFIG_VERSION} " VERSION_GREATER 20 )
43+ if ("${LLVM_CONFIG_VERSION} " VERSION_LESS 20 OR "${LLVM_CONFIG_VERSION} " VERSION_EQUAL 21 OR "${LLVM_CONFIG_VERSION} " VERSION_GREATER 21 )
4444 # Save the error message, in case this is the last llvm-config we find
45- list (APPEND LLVM_CONFIG_ERROR_MESSAGES "expected LLVM 19 .x but found ${LLVM_CONFIG_VERSION} using ${LLVM_CONFIG_EXE} " )
45+ list (APPEND LLVM_CONFIG_ERROR_MESSAGES "expected LLVM 20 .x but found ${LLVM_CONFIG_VERSION} using ${LLVM_CONFIG_EXE} " )
4646
4747 # Ignore this directory and try the search again
4848 list (APPEND CMAKE_IGNORE_PATH "${LLVM_CONFIG_DIR} " )
@@ -66,9 +66,9 @@ if(ZIG_USE_LLVM_CONFIG)
6666 if (LLVM_CONFIG_ERROR)
6767 # Save the error message, in case this is the last llvm-config we find
6868 if (ZIG_SHARED_LLVM)
69- list (APPEND LLVM_CONFIG_ERROR_MESSAGES "LLVM 19 .x found at ${LLVM_CONFIG_EXE} does not support linking as a shared library" )
69+ list (APPEND LLVM_CONFIG_ERROR_MESSAGES "LLVM 20 .x found at ${LLVM_CONFIG_EXE} does not support linking as a shared library" )
7070 else ()
71- list (APPEND LLVM_CONFIG_ERROR_MESSAGES "LLVM 19 .x found at ${LLVM_CONFIG_EXE} does not support linking as a static library" )
71+ list (APPEND LLVM_CONFIG_ERROR_MESSAGES "LLVM 20 .x found at ${LLVM_CONFIG_EXE} does not support linking as a static library" )
7272 endif ()
7373
7474 # Ignore this directory and try the search again
@@ -197,10 +197,10 @@ else()
197197 FIND_AND_ADD_LLVM_LIB(LLVMXRay)
198198 FIND_AND_ADD_LLVM_LIB(LLVMLibDriver)
199199 FIND_AND_ADD_LLVM_LIB(LLVMDlltoolDriver)
200+ FIND_AND_ADD_LLVM_LIB(LLVMTelemetry)
200201 FIND_AND_ADD_LLVM_LIB(LLVMTextAPIBinaryReader)
201202 FIND_AND_ADD_LLVM_LIB(LLVMCoverage)
202203 FIND_AND_ADD_LLVM_LIB(LLVMLineEditor)
203- FIND_AND_ADD_LLVM_LIB(LLVMSandboxIR)
204204 FIND_AND_ADD_LLVM_LIB(LLVMXCoreDisassembler)
205205 FIND_AND_ADD_LLVM_LIB(LLVMXCoreCodeGen)
206206 FIND_AND_ADD_LLVM_LIB(LLVMXCoreDesc)
@@ -227,6 +227,10 @@ else()
227227 FIND_AND_ADD_LLVM_LIB(LLVMSystemZCodeGen)
228228 FIND_AND_ADD_LLVM_LIB(LLVMSystemZDesc)
229229 FIND_AND_ADD_LLVM_LIB(LLVMSystemZInfo)
230+ FIND_AND_ADD_LLVM_LIB(LLVMSPIRVCodeGen)
231+ FIND_AND_ADD_LLVM_LIB(LLVMSPIRVDesc)
232+ FIND_AND_ADD_LLVM_LIB(LLVMSPIRVInfo)
233+ FIND_AND_ADD_LLVM_LIB(LLVMSPIRVAnalysis)
230234 FIND_AND_ADD_LLVM_LIB(LLVMSparcDisassembler)
231235 FIND_AND_ADD_LLVM_LIB(LLVMSparcAsmParser)
232236 FIND_AND_ADD_LLVM_LIB(LLVMSparcCodeGen)
@@ -325,18 +329,19 @@ else()
325329 FIND_AND_ADD_LLVM_LIB(LLVMCoroutines)
326330 FIND_AND_ADD_LLVM_LIB(LLVMipo)
327331 FIND_AND_ADD_LLVM_LIB(LLVMVectorize)
332+ FIND_AND_ADD_LLVM_LIB(LLVMSandboxIR)
328333 FIND_AND_ADD_LLVM_LIB(LLVMLinker)
329334 FIND_AND_ADD_LLVM_LIB(LLVMInstrumentation)
330335 FIND_AND_ADD_LLVM_LIB(LLVMFrontendOpenMP)
331336 FIND_AND_ADD_LLVM_LIB(LLVMFrontendOffloading)
332337 FIND_AND_ADD_LLVM_LIB(LLVMFrontendOpenACC)
333338 FIND_AND_ADD_LLVM_LIB(LLVMFrontendHLSL)
334339 FIND_AND_ADD_LLVM_LIB(LLVMFrontendDriver)
340+ FIND_AND_ADD_LLVM_LIB(LLVMFrontendAtomic)
335341 FIND_AND_ADD_LLVM_LIB(LLVMExtensions)
336342 FIND_AND_ADD_LLVM_LIB(LLVMDWARFLinkerParallel)
337343 FIND_AND_ADD_LLVM_LIB(LLVMDWARFLinkerClassic)
338344 FIND_AND_ADD_LLVM_LIB(LLVMDWARFLinker)
339- FIND_AND_ADD_LLVM_LIB(LLVMCodeGenData)
340345 FIND_AND_ADD_LLVM_LIB(LLVMGlobalISel)
341346 FIND_AND_ADD_LLVM_LIB(LLVMMIRParser)
342347 FIND_AND_ADD_LLVM_LIB(LLVMAsmPrinter)
@@ -345,6 +350,7 @@ else()
345350 FIND_AND_ADD_LLVM_LIB(LLVMTarget)
346351 FIND_AND_ADD_LLVM_LIB(LLVMObjCARCOpts)
347352 FIND_AND_ADD_LLVM_LIB(LLVMCodeGenTypes)
353+ FIND_AND_ADD_LLVM_LIB(LLVMCGData)
348354 FIND_AND_ADD_LLVM_LIB(LLVMIRPrinter)
349355 FIND_AND_ADD_LLVM_LIB(LLVMInterfaceStub)
350356 FIND_AND_ADD_LLVM_LIB(LLVMFileCheck)
@@ -360,14 +366,14 @@ else()
360366 FIND_AND_ADD_LLVM_LIB(LLVMDebugInfoBTF)
361367 FIND_AND_ADD_LLVM_LIB(LLVMDebugInfoPDB)
362368 FIND_AND_ADD_LLVM_LIB(LLVMDebugInfoMSF)
369+ FIND_AND_ADD_LLVM_LIB(LLVMDebugInfoCodeView)
363370 FIND_AND_ADD_LLVM_LIB(LLVMDebugInfoDWARF)
364371 FIND_AND_ADD_LLVM_LIB(LLVMObject)
365372 FIND_AND_ADD_LLVM_LIB(LLVMTextAPI)
366373 FIND_AND_ADD_LLVM_LIB(LLVMMCParser)
367374 FIND_AND_ADD_LLVM_LIB(LLVMIRReader)
368375 FIND_AND_ADD_LLVM_LIB(LLVMAsmParser)
369376 FIND_AND_ADD_LLVM_LIB(LLVMMC)
370- FIND_AND_ADD_LLVM_LIB(LLVMDebugInfoCodeView)
371377 FIND_AND_ADD_LLVM_LIB(LLVMBitReader)
372378 FIND_AND_ADD_LLVM_LIB(LLVMFuzzerCLI)
373379 FIND_AND_ADD_LLVM_LIB(LLVMCore)
0 commit comments