Skip to content

compiler: header file generated by zig build-lib -femit-h includes zig.h #14381

@perillo

Description

@perillo

I'm trying to make the example in https://ziglang.org/documentation/0.10.1/#toc-Exporting-a-C-Library work.

zig build-obj -femit-h mathtest.zig correctly emits the mathtest.h header file, but the problem is that the file includes zig.h so that zig build still fails since zig.h is not found.

See PR #14378.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions