Skip to content

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

@andrewrk

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

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