@@ -10,7 +10,7 @@ LLD_SRC ?= $(LLVM_PROJECTDIR)/lld
10
10
11
11
# Try to autodetect LLVM build tools.
12
12
# Versions are listed here in descending priority order.
13
- LLVM_VERSIONS = 17 16 15
13
+ LLVM_VERSIONS = 18 17 16 15
14
14
errifempty = $(if $(1 ) ,$(1 ) ,$(error $(2 ) ) )
15
15
detect = $(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 ) ) )
16
16
toolSearchPathsVersion = $(1 ) -$(2 )
@@ -111,7 +111,7 @@ endif
111
111
112
112
.PHONY : all tinygo test $(LLVM_BUILDDIR ) llvm-source clean fmt gen-device gen-device-nrf gen-device-nxp gen-device-avr gen-device-rp
113
113
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
115
115
116
116
ifeq ($(OS ) ,Windows_NT)
117
117
EXE = .exe
@@ -147,7 +147,7 @@ endif
147
147
MD5SUM ?= md5sum
148
148
149
149
# 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
151
151
CLANG_LIBS = $(START_GROUP ) $(addprefix -l,$(CLANG_LIB_NAMES ) ) $(END_GROUP ) -lstdc++
152
152
153
153
# Libraries that should be linked in for the statically linked LLD.
@@ -239,7 +239,7 @@ gen-device-renesas: build/gen-device-svd
239
239
240
240
# Get LLVM sources.
241
241
$(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 )
243
243
llvm-source : $(LLVM_PROJECTDIR ) /llvm
244
244
245
245
# Configure LLVM.
0 commit comments