Skip to content

Linking fails with Emscripten #86

Open
@Interrupt

Description

@Interrupt

When making a web build for Emscripten, and linking ziglua with the Emscripten system headers, linking fails with an error like:

/Users/ccuddigan/.cache/zig/p/1220f93ada1fa077ab096bf88a5b159ad421dbf6a478edec78ddb186d0c21d3476d9/src/lauxlib.h:246:3: error: unknown type name 'FILE'
  FILE *f;  /* stream (NULL for incompletely created streams) */

This might be because -DLUA_USE_POSIX is passed in build.zig for all unknown targets, and the WASM case isn't handled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions