Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 #19614

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jedisct1
Copy link
Contributor

Most notable improvements include realpath and stubs for statvfs, chmod, etc.

Other changes are for WASI 0.2 which is going to be painful to support since 3rd party tools written in Rust may become necessary in addition to LLVM (WebAssembly/wasi-sdk#402)

@jedisct1
Copy link
Contributor Author

This also removes junk we were shipping but irrelevant to webassembly.

jedisct1 and others added 3 commits April 11, 2024 23:59
* master:
  translate-c: allow str literals in bool expressions
  std.debug.panic: pass the args
  fetch: combine unpack error validation in a single function
  std.Build: revert the breaking changes only
  remove deprecated LazyPath.path union tag
@lin72h
Copy link

lin72h commented Apr 12, 2024

10KLoc reduce, feel so good

* master: (29 commits)
  cmake: support setting the dynamic linker
  std.Build: revert --host-target, --host-cpu, --host-dynamic-linker
  Sema: cap depth of value printing in type names
  Sema: correctly make inferred allocs constant
  std.zig.system.linux: Use arm.zig detection for AArch64 CPU features
  Value: convert undefined values to 0xAA for bitwise operations
  Value: fix out-of-bounds slice access writing zero-bit undef value
  compiler: un-implement ziglang#19634
  test: disable newly failing test
  compiler: rework comptime pointer representation and access
  x86_64: fix miscompilation regression in package fetching code
  std: improve std.once tests
  lib/std/Build/Step/CheckObject: dump section as string
  zig init: Replace deprecated LazyPath.path with Build.path()
  std.Build.Step.ConfigHeader: better error message
  windows_argv standalone test: Only test against MSVC if it's available
  ArgIteratorWindows: Match post-2008 C runtime rather than CommandLineToArgvW
  fix namespacing of std.fs.Dir.Walker.Entry
  std.fs.Dir.Walker: maintain a null byte in path names
  wasi: change default os version to `0.1.0`
  ...
@jedisct1
Copy link
Contributor Author

Added the wasi-libc libdl shim, so that tools such as py2wasm can use zig cc.

@andrewrk
Copy link
Member

andrewrk commented Jun 8, 2024

man. wasi-libc kinda sucks. how about we provide libc via zig code instead?

@jedisct1
Copy link
Contributor Author

jedisct1 commented Jun 8, 2024

wasi-libc is horrible. And it's getting worse with the wasi preview 2 bits.

But rewriting it in Zig would be a lot of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants