Skip to content

Update wasi-libc to 3189cd1ceec8771e8f27faab58ad05d4d6c369ef#15817

Merged
jedisct1 merged 4 commits intoziglang:masterfrom
jedisct1:update-wasi-libc
May 23, 2023
Merged

Update wasi-libc to 3189cd1ceec8771e8f27faab58ad05d4d6c369ef#15817
jedisct1 merged 4 commits intoziglang:masterfrom
jedisct1:update-wasi-libc

Conversation

@jedisct1
Copy link
Contributor

@jedisct1 jedisct1 commented May 22, 2023

Also remove all the wasi-libc files we used to ship, but never compile.

The latest wasi-libc HEAD has an extra commit (a6f871343313220b76009827ed0153586361c0d5), which makes preopen initialization lazy: WebAssembly/wasi-libc#408

Unfortunately, that breaks quite a lot of things on our end. Applications now need to explicitly call __wasilibc_populate_preopens() everywhere when the libc is linked. That can wait after 0.11.

Also remove all the wasi-libc files we used to ship, but never compile.
@jedisct1 jedisct1 requested a review from Luukdegram May 22, 2023 16:51
@jedisct1 jedisct1 added os-wasi WebAssembly System Interface arch-wasm 32-bit and 64-bit WebAssembly labels May 22, 2023
wasi-libc now requiring explicit __wasilibc_populate_preopens() calls
breaks too many things.

We can deal with this after 0.11.
@jedisct1 jedisct1 changed the title Update wasi-libc to a6f871343313220b76009827ed0153586361c0d5 Update wasi-libc to 3189cd1ceec8771e8f27faab58ad05d4d6c369ef May 22, 2023
Copy link
Contributor

@Luukdegram Luukdegram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always good to see code deleted :)

@jedisct1 jedisct1 merged commit dcc1b4f into ziglang:master May 23, 2023
@jedisct1 jedisct1 deleted the update-wasi-libc branch May 23, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm 32-bit and 64-bit WebAssembly os-wasi WebAssembly System Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants