@@ -10,7 +10,7 @@ LLD_SRC ?= $(LLVM_PROJECTDIR)/lld
1010
1111# Try to autodetect LLVM build tools.
1212# Versions are listed here in descending priority order.
13- LLVM_VERSIONS = 17 16 15
13+ LLVM_VERSIONS = 18 17 16 15
1414errifempty = $(if $(1 ) ,$(1 ) ,$(error $(2 ) ) )
1515detect = $(shell which $(call errifempty,$(firstword $(foreach p,$(2 ) ,$(shell command -v $(p ) 2> /dev/null && echo $(p ) ) ) ) ,failed to locate $(1 ) at any of: $(2 ) ) )
1616toolSearchPathsVersion = $(1 ) -$(2 )
@@ -111,7 +111,7 @@ endif
111111
112112.PHONY : all tinygo test $(LLVM_BUILDDIR ) llvm-source clean fmt gen-device gen-device-nrf gen-device-nxp gen-device-avr gen-device-rp
113113
114- LLVM_COMPONENTS = all-targets analysis asmparser asmprinter bitreader bitwriter codegen core coroutines coverage debuginfodwarf debuginfopdb executionengine frontendhlsl frontendopenmp instrumentation interpreter ipo irreader libdriver linker lto mc mcjit objcarcopts option profiledata scalaropts support target windowsdriver windowsmanifest
114+ LLVM_COMPONENTS = all-targets analysis asmparser asmprinter bitreader bitwriter codegen core coroutines coverage debuginfodwarf debuginfopdb executionengine frontenddriver frontendhlsl frontendopenmp instrumentation interpreter ipo irreader libdriver linker lto mc mcjit objcarcopts option profiledata scalaropts support target windowsdriver windowsmanifest
115115
116116ifeq ($(OS ) ,Windows_NT)
117117 EXE = .exe
@@ -147,7 +147,7 @@ endif
147147MD5SUM ?= md5sum
148148
149149# Libraries that should be linked in for the statically linked Clang.
150- CLANG_LIB_NAMES = clangAnalysis clangAST clangASTMatchers clangBasic clangCodeGen clangCrossTU clangDriver clangDynamicASTMatchers clangEdit clangExtractAPI clangFormat clangFrontend clangFrontendTool clangHandleCXX clangHandleLLVM clangIndex clangLex clangParse clangRewrite clangRewriteFrontend clangSema clangSerialization clangSupport clangTooling clangToolingASTDiff clangToolingCore clangToolingInclusions
150+ CLANG_LIB_NAMES = clangAnalysis clangAPINotes clangAST clangASTMatchers clangBasic clangCodeGen clangCrossTU clangDriver clangDynamicASTMatchers clangEdit clangExtractAPI clangFormat clangFrontend clangFrontendTool clangHandleCXX clangHandleLLVM clangIndex clangLex clangParse clangRewrite clangRewriteFrontend clangSema clangSerialization clangSupport clangTooling clangToolingASTDiff clangToolingCore clangToolingInclusions
151151CLANG_LIBS = $(START_GROUP ) $(addprefix -l,$(CLANG_LIB_NAMES ) ) $(END_GROUP ) -lstdc++
152152
153153# Libraries that should be linked in for the statically linked LLD.
@@ -239,7 +239,7 @@ gen-device-renesas: build/gen-device-svd
239239
240240# Get LLVM sources.
241241$(LLVM_PROJECTDIR ) /llvm :
242- git clone -b esp-17.0.1_20240419 --depth=1 https://github.com/espressif /llvm-project $(LLVM_PROJECTDIR )
242+ git clone -b tinygo_xtensa_release_18.1.2 --depth=1 https://github.com/tinygo-org /llvm-project $(LLVM_PROJECTDIR )
243243llvm-source : $(LLVM_PROJECTDIR ) /llvm
244244
245245# Configure LLVM.
0 commit comments