Skip to content

avoid linking using --export-all for webassembly #2290

Description

@andrewrk

Currently Zig uses --export-all to the linker line when targeting WebAssembly. This prevents symbols from being deleted from compiler_rt.a and builtin.a. Instead, only functions explicitly marked export in the root source file should be exported. We should be able to create a truly minimal webassembly file if there are no dependencies on compiler_rt functions or builtin.a functions.

Related: #1570, #2062

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasm32-bit and 64-bit WebAssembly

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions