Skip to content

Commit

Permalink
Support --dynamic-linker flag with an = instead of a space
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlattimore committed Oct 25, 2024
1 parent f9ea7cb commit 02fe09b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wild_lib/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ pub(crate) fn parse<S: AsRef<str>, I: Iterator<Item = S>>(mut input: I) -> Resul
} else if long_arg_eq("dynamic-linker") {
is_dynamic_executable = true;
dynamic_linker = input.next().map(|a| Box::from(Path::new(a.as_ref())));
} else if let Some(rest) = long_arg_split_prefix("dynamic-linker=") {
is_dynamic_executable = true;
dynamic_linker = Some(Box::from(Path::new(rest)));
} else if long_arg_eq("no-dynamic-linker") {
dynamic_linker = None;
} else if let Some(style) = long_arg_split_prefix("hash-style=") {
Expand Down

0 comments on commit 02fe09b

Please sign in to comment.