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

improvements to build-lib use case of WebAssembly #2507

Merged
merged 2 commits into from May 16, 2019
Merged

Conversation

andrewrk
Copy link
Member

  • 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.

 * 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.
@andrewrk andrewrk merged commit 8468ff0 into master May 16, 2019
@andrewrk andrewrk deleted the wasm-libs branch May 16, 2019 18:31
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.

None yet

1 participant