diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-05-16 13:56:56 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-05-16 13:56:56 -0400 |
| commit | 81e960eb748fdb37d1d61da262ec343e2fdb2511 (patch) | |
| tree | ed4059af1ce6181457887bbfbf98a17b3bbfcf44 /src/ir.cpp | |
| parent | 07d0aee11a5725dc22eeaa116fb59c40a1a7c99c (diff) | |
| download | zig-81e960eb748fdb37d1d61da262ec343e2fdb2511.tar.gz zig-81e960eb748fdb37d1d61da262ec343e2fdb2511.zip | |
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.
Diffstat (limited to 'src/ir.cpp')
0 files changed, 0 insertions, 0 deletions
