Skip to content

Commit

Permalink
zigcc: see all flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jan 17, 2025
1 parent d321335 commit 5aaa877
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/zigcc.zig
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub fn main() !void {
try cmds.append(arg); // get "-target" flag
} else if (std.mem.eql(u8, arg, "/NOLOGO") or std.mem.eql(u8, arg, "/nologo")) {
// SKIP
} else if (std.mem.eql(u8, arg, "/P")) {
} else if (std.mem.startsWith(u8, arg, "/P")) {
// SKIP
} else if (std.mem.eql(u8, arg, "/DEBUG")) {
// SKIP
Expand All @@ -64,9 +64,9 @@ pub fn main() !void {
var proc = std.process.Child.init(cmds.items, allocator);

// See all flags
// std.debug.print("debug flags: ", .{});
// for (cmds.items) |cmd|
// std.debug.print("{s} ", .{cmd});

std.debug.print("zig-cc flags: ", .{});
for (cmds.items) |cmd| {
std.debug.print("{s} ", .{cmd});
}
_ = try proc.spawnAndWait();
}

0 comments on commit 5aaa877

Please sign in to comment.