Skip to content

Commit

Permalink
Handle and (for now) ignore -(-)stats linker option.
Browse files Browse the repository at this point in the history
Unblocks scenarios like the one in #18750, but does not actually fix it.
  • Loading branch information
alexrp committed Jun 22, 2024
1 parent 616aa4a commit 7304e65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2493,6 +2493,8 @@ fn buildOutputType(
} else if (mem.eql(u8, arg, "--wrap") or mem.eql(u8, arg, "-wrap")) {
const next_arg = linker_args_it.nextOrFatal();
try symbol_wrap_set.put(arena, next_arg, {});
} else if (mem.eql(u8, arg, "--stats") or mem.eql(u8, arg, "-stats")) {
// TODO: Actually compute and display statistics.
} else if (mem.startsWith(u8, arg, "/subsystem:")) {
var split_it = mem.splitBackwardsScalar(u8, arg, ':');
subsystem = try parseSubSystem(split_it.first());
Expand Down

0 comments on commit 7304e65

Please sign in to comment.