mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
improvements to build-lib use case of WebAssembly
* build-exe does include the startup code that supplies _start for the wasm32-freestanding target. Previously this did not occur because of logic excluding "freestanding". * build-lib for wasm32-freestanding target gets linked by LLD. To avoid infinite recursion, compiler_rt and zig libc are built as objects rather than libraries. - no "lib" prefix and ".wasm" extension instead of ".a". Rather than build-lib foo.zig producing "libfoo.a", now it produces "foo.wasm". * go back to using `.o` extension for webassembly objects * zig libc only provides _start symbol for wasm when linking libc.
This commit is contained in:
parent
07d0aee11a
commit
81e960eb74
5 changed files with 25 additions and 21 deletions
Loading…
Add table
Add a link
Reference in a new issue