Skip to content

Commit

Permalink
Handle --undefined linker option in addition to -u.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jun 22, 2024
1 parent e289d2d commit 9b98295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@ fn buildOutputType(
have_version = true;
} else if (mem.eql(u8, arg, "-e") or mem.eql(u8, arg, "--entry") or mem.eql(u8, arg, "-entry")) {
entry = .{ .named = linker_args_it.nextOrFatal() };
} else if (mem.eql(u8, arg, "-u")) {
} else if (mem.eql(u8, arg, "-u") or mem.eql(u8, arg, "--undefined")) {
try force_undefined_symbols.put(arena, linker_args_it.nextOrFatal(), {});
} else if (mem.eql(u8, arg, "--stack") or mem.eql(u8, arg, "-stack") or mem.eql(u8, arg, "-stack_size")) {
stack_size = parseStackSize(linker_args_it.nextOrFatal());
Expand Down

0 comments on commit 9b98295

Please sign in to comment.