Skip to content

Commit

Permalink
Handle single-dash variant of --dynamic-linker in Zig-mode commands…
Browse files Browse the repository at this point in the history
… for consistency.
  • Loading branch information
alexrp committed Jun 22, 2024
1 parent 84ea02c commit 616aa4a
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 @@ -1292,7 +1292,7 @@ fn buildOutputType(
target_mcpu = arg["-mcpu=".len..];
} else if (mem.startsWith(u8, arg, "-O")) {
mod_opts.optimize_mode = parseOptimizeMode(arg["-O".len..]);
} else if (mem.eql(u8, arg, "--dynamic-linker")) {
} else if (mem.eql(u8, arg, "--dynamic-linker") or mem.eql(u8, arg, "-dynamic-linker")) {
create_module.dynamic_linker = args_iter.nextOrFatal();
} else if (mem.eql(u8, arg, "--sysroot")) {
const next_arg = args_iter.nextOrFatal();
Expand Down

0 comments on commit 616aa4a

Please sign in to comment.