Skip to content

Commit 633fe95

Browse files
aykevldeadprogram
authored andcommitted
wasm: update wasi-libc version
This is necessary for the next commit. It also results in a nice wasm binary size saving of around 300 bytes.
1 parent 64d7f1e commit 633fe95

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

.github/workflows/build-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
uses: actions/cache@v2
7272
id: cache-wasi-libc
7373
with:
74-
key: wasi-libc-sysroot-v3
74+
key: wasi-libc-sysroot-v4
7575
path: lib/wasi-libc/sysroot
7676
- name: Build wasi-libc
7777
if: steps.cache-wasi-libc.outputs.cache-hit != 'true'

.github/workflows/linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
uses: actions/cache@v2
8282
id: cache-wasi-libc
8383
with:
84-
key: wasi-libc-sysroot-linux-asserts-v4
84+
key: wasi-libc-sysroot-linux-asserts-v5
8585
path: lib/wasi-libc/sysroot
8686
- name: Build wasi-libc
8787
if: steps.cache-wasi-libc.outputs.cache-hit != 'true'
@@ -222,7 +222,7 @@ jobs:
222222
uses: actions/cache@v2
223223
id: cache-wasi-libc
224224
with:
225-
key: wasi-libc-sysroot-linux-asserts-v4
225+
key: wasi-libc-sysroot-linux-asserts-v5
226226
path: lib/wasi-libc/sysroot
227227
- name: Build wasi-libc
228228
if: steps.cache-wasi-libc.outputs.cache-hit != 'true'

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
uses: actions/cache@v2
7373
id: cache-wasi-libc
7474
with:
75-
key: wasi-libc-sysroot-v3
75+
key: wasi-libc-sysroot-v4
7676
path: lib/wasi-libc/sysroot
7777
- name: Build wasi-libc
7878
if: steps.cache-wasi-libc.outputs.cache-hit != 'true'

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ endif
234234
wasi-libc: lib/wasi-libc/sysroot/lib/wasm32-wasi/libc.a
235235
lib/wasi-libc/sysroot/lib/wasm32-wasi/libc.a:
236236
@if [ ! -e lib/wasi-libc/Makefile ]; then echo "Submodules have not been downloaded. Please download them using:\n git submodule update --init"; exit 1; fi
237-
cd lib/wasi-libc && make -j4 WASM_CFLAGS="-O2 -g -DNDEBUG" MALLOC_IMPL=none WASM_CC=$(CLANG) WASM_AR=$(LLVM_AR) WASM_NM=$(LLVM_NM)
237+
cd lib/wasi-libc && make -j4 WASM_CFLAGS="-O2 -g -DNDEBUG" MALLOC_IMPL=none CC=$(CLANG) AR=$(LLVM_AR) NM=$(LLVM_NM)
238238

239239

240240
# Build the Go compiler.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/tinygo-org/tinygo
33
go 1.16
44

55
require (
6-
github.com/aykevl/go-wasm v0.0.2-0.20211119014117-0761b1ddcd1a
6+
github.com/aykevl/go-wasm v0.0.2-0.20220616010729-4a0a888aebdc
77
github.com/blakesmith/ar v0.0.0-20150311145944-8bd4349a67f2
88
github.com/chromedp/cdproto v0.0.0-20220113222801-0725d94bb6ee
99
github.com/chromedp/chromedp v0.7.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/aykevl/go-wasm v0.0.2-0.20211119014117-0761b1ddcd1a h1:QPU7APo6y/6VkCDq6HU3WWIUzER8iywSac23+1UQv60=
2-
github.com/aykevl/go-wasm v0.0.2-0.20211119014117-0761b1ddcd1a/go.mod h1:7sXyiaA0WtSogCu67R2252fQpVmJMh9JWJ9ddtGkpWw=
1+
github.com/aykevl/go-wasm v0.0.2-0.20220616010729-4a0a888aebdc h1:Yp49g+qqgQRPk/gcRSmAsXgnT16XPJ6Y5JM1poc6gYM=
2+
github.com/aykevl/go-wasm v0.0.2-0.20220616010729-4a0a888aebdc/go.mod h1:7sXyiaA0WtSogCu67R2252fQpVmJMh9JWJ9ddtGkpWw=
33
github.com/blakesmith/ar v0.0.0-20150311145944-8bd4349a67f2 h1:oMCHnXa6CCCafdPDbMh/lWRhRByN0VFLvv+g+ayx1SI=
44
github.com/blakesmith/ar v0.0.0-20150311145944-8bd4349a67f2/go.mod h1:PkYb9DJNAwrSvRx5DYA+gUcOIgTGVMNkfSCbZM8cWpI=
55
github.com/chromedp/cdproto v0.0.0-20211126220118-81fa0469ad77/go.mod h1:At5TxYYdxkbQL0TSefRjhLE3Q0lgvqKKMSFUglJ7i1U=

lib/wasi-libc

0 commit comments

Comments
 (0)