Skip to content

zig cc can't accept -- in args #14837

Open
@iacore

Description

@iacore

Zig Version

0.11.0-dev.1898+36d47dd19

Steps to Reproduce and Observed Behavior

> echo "int main() {}" > program.c

> zig cc -- program.c
error: Unknown Clang option: '--'

> clang -- program.c
# success

Expected Behavior

It should parse like clang. args after -- are not flags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorenhancementSolving this issue will likely involve adding new logic or components to the codebase.zig ccZig as a drop-in C compiler feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions