Skip to content

wasm32-freestanding: dynamic linking unavailable on the specified target #18825

@clebert

Description

@clebert

Zig Version

0.12.0-dev.2586+3c7970dc4

Steps to Reproduce and Observed Behavior

zig build-lib src/foo.zig -OReleaseSmall -target wasm32-freestanding -mcpu baseline+simd128 -rdynamic -dynamic
error: dynamic linking unavailable on the specified target

Expected Behavior

The same command works in Zig 0.11 and produces a .wasm file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasm32-bit and 64-bit WebAssemblybugObserved behavior contradicts documented or intended behaviorlinking

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions