serenity icon indicating copy to clipboard operation
serenity copied to clipboard

Ports: Add zig port

Open sin-ack opened this issue 3 years ago • 1 comments

:yakkie:

Shoutouts to IdanHo for the flock ideas, Daniel for various syscall implementations, and timschumi for the awesome LibC work.

Yak stack:

  • [x] Do not hardcode constants in serenity.zig. Instead, bundle a generate-serenity-constants.zig file with the port, and use that to generate constant values during the build by importing LibC headers from Zig.
  • [x] Symlink the appropriate LLVM patches from Toolchain/LLVM instead of bundling them. This can't be done for the libcxx patch as it needs to be adapted for Zig.
  • [ ] (Optional) Figure out how to properly let go of the TLS segment of the program during execve so that zig run works.

sin-ack avatar Oct 01 '22 20:10 sin-ack

Need to fix PTHREAD_STACK_MAX being needed by LibELF in Lagom.

sin-ack avatar Oct 30 '22 22:10 sin-ack