Skip to content

Support .c inputs to zig_binary|library|test #81

@aherrmann

Description

@aherrmann

Zig supports various C source type inputs. For each each such input it tracks the most recent set of -cflags ... -- surround C flags. The C files are compiled to objects using llvm and linked into the final output. Fortunately, we don't need to worry about link-order, because the Zig linker takes care of resolving dependencies either way.

  • end-to-end test
  • handle csrcs and copts
  • unit-test for copts (surrounded by -cflags ... --, if set, omitted otherwise)
  • unit-test for csrcs (all included on command-line)

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