| author | |
| committer | |
| log | 41e6aa78bb4240941167ac4f80aaa37d26c0c315 |
| tree | 0103ceeddba30d500cd5e4d95993161bbc7fcd45 |
| parent | 072d1e088c3e383c2303b873f55399d374d9808c |
This fixes #6271, which allows using `zig cc` with meson.1 files changed, 1 insertions(+), 1 deletions(-)
src/main.zig+1-1| ... | ... | @@ -3056,7 +3056,7 @@ pub const ClangArgIterator = struct { |
| 3056 | 3056 | arg = mem.span(self.argv[self.next_index]); |
| 3057 | 3057 | self.incrementArgIndex(); |
| 3058 | 3058 | } |
| 3059 | if (!mem.startsWith(u8, arg, "-")) { | |
| 3059 | if (mem.eql(u8, arg, "-") or !mem.startsWith(u8, arg, "-")) { | |
| 3060 | 3060 | self.zig_equivalent = .positional; |
| 3061 | 3061 | self.only_arg = arg; |
| 3062 | 3062 | return; |