@@ -22,13 +22,13 @@ TARGET_TRIPLE ?= wasm32-wasi
22
22
23
23
LIBC_TEST_URL ?= https://github.com/bytecodealliance/libc-test
24
24
LIBC_TEST = $(DOWNDIR ) /libc-test
25
- LIBRT_URL ?= https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-16 /libclang_rt.builtins-wasm32-wasi-16 .0.tar.gz
26
- LIBRT = $(DOWNDIR ) /lib/wasi/ libclang_rt.builtins-wasm32.a
27
- WASMTIME_URL ?= https://github.com/bytecodealliance/wasmtime/releases/download/v17 .0.0 /wasmtime-v17 .0.0 -x86_64-linux.tar.xz
25
+ LIBRT_URL ?= https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24 /libclang_rt.builtins-wasm32-wasi-24 .0.tar.gz
26
+ LIBRT = $(DOWNDIR ) /libclang_rt.builtins-wasm32.a
27
+ WASMTIME_URL ?= https://github.com/bytecodealliance/wasmtime/releases/download/v26 .0.1 /wasmtime-v26 .0.1 -x86_64-linux.tar.xz
28
28
WASMTIME = $(DOWNDIR ) /$(shell basename $(WASMTIME_URL ) .tar.xz) /wasmtime
29
- WASM_TOOLS_URL ?= https://github.com/bytecodealliance/wasm-tools/releases/download/wasm-tools-1.0.54 /wasm-tools-1.0.54 -x86_64-linux.tar.gz
29
+ WASM_TOOLS_URL ?= https://github.com/bytecodealliance/wasm-tools/releases/download/v1.220.0 /wasm-tools-1.220.0 -x86_64-linux.tar.gz
30
30
WASM_TOOLS = $(DOWNDIR ) /$(shell basename $(WASM_TOOLS_URL ) .tar.gz) /wasm-tools
31
- ADAPTER_URL ?= https://github.com/bytecodealliance/wasmtime/releases/download/v17 .0.0 /wasi_snapshot_preview1.command.wasm
31
+ ADAPTER_URL ?= https://github.com/bytecodealliance/wasmtime/releases/download/v26 .0.1 /wasi_snapshot_preview1.command.wasm
32
32
ADAPTER = $(DOWNDIR ) /wasi_snapshot_preview1.command.wasm
33
33
34
34
TO_DOWNLOAD = $(LIBC_TEST ) $(LIBRT ) $(WASMTIME )
@@ -44,10 +44,11 @@ $(DOWNDIR):
44
44
$(LIBC_TEST ) : | $(DOWNDIR )
45
45
git clone --depth 1 $(LIBC_TEST_URL ) $@
46
46
47
- # TODO install target to place into...
47
+ # TODO: add install target to copy builtins library directly into a Clang
48
+ # installation.
48
49
$(LIBRT ) : | $(DOWNDIR )
49
50
wget --no-clobber --directory-prefix=$(DOWNDIR ) $(LIBRT_URL )
50
- tar --extract --file=$(DOWNDIR ) /$(shell basename $(LIBRT_URL ) ) --directory=$(DOWNDIR ) /
51
+ tar --extract --file=$(DOWNDIR ) /$(shell basename $(LIBRT_URL ) ) --strip-components=1 -- directory=$(DOWNDIR ) /
51
52
52
53
$(WASMTIME ) : | $(DOWNDIR )
53
54
wget --no-clobber --directory-prefix=$(DOWNDIR ) $(WASMTIME_URL )
@@ -61,7 +62,7 @@ $(ADAPTER): | $(DOWNDIR)
61
62
wget --no-clobber --directory-prefix=$(DOWNDIR ) $(ADAPTER_URL )
62
63
63
64
clean ::
64
- rm -rf download
65
+ rm -rf $( DOWNDIR )
65
66
66
67
# #### BUILD ####################################################################
67
68
@@ -145,7 +146,7 @@ endif
145
146
# due to a missing `libclang_rt.builtins-wasm32.a` in the Clang lib directory.
146
147
# This location is system-dependent, but could be fixed by something like:
147
148
# $ sudo mkdir /usr/lib64/clang/14.0.5/lib/wasi
148
- # $ sudo cp download/lib/wasi/ libclang_rt.builtins-wasm32.a /usr/lib64/clang/14.0.5/lib/wasi/
149
+ # $ sudo cp download/libclang_rt.builtins-wasm32.a /usr/lib64/clang/14.0.5/lib/wasi/
149
150
build : download $(WASMS )
150
151
151
152
$(WASMS ) : | $(OBJDIRS )
0 commit comments