From e64909a636180a1d34e49879098bb87b3016dc7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 22 Jun 2024 09:27:01 +0200 Subject: [PATCH] Handle single-dash variant of `--dynamic-linker` in Zig-mode commands for consistency. --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 0fb59c6895f2..c41be2845b46 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1300,7 +1300,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();