Skip to content

Support zig_module copts #523

@cerisier

Description

@cerisier

All zig compiler invocations support per module compiler options.
Therefore, adding a copts attribute to zig_module and gather them through the graph would allow forging the arguments at the right location when invoking the zig compiler.

However, this naming conflicts with the existing copts attribute of the zig_build descendent rules.
Currently, copts is used as C compiler flags and are prefixed with -cflags during zig compiler invocation.

I suggest that we rename the existing copts to cflags and use copts for Compiler options like it is the case for rules_swift for example.

WDYT ?

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