Skip to content

wasm outputs has no exports #16772

@hronro

Description

@hronro

Zig Version

0.11.0

Steps to Reproduce and Observed Behavior

  • zig init-lib
  • Change b.addStaticLibrary to b.addSharedLibrary in build.zig
  • Run zig build -Dtarget=wasm32-freestanding

zig-out/lib/mylib.wasm doesn't contains any exports.

Expected Behavior

The wasm file should contains the add function, which is defined in the src/main.zig which is generated by zig init-lib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions