diff options
Diffstat (limited to 'src/makefile/command_line.rs')
-rw-r--r-- | src/makefile/command_line.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/makefile/command_line.rs b/src/makefile/command_line.rs index c75c854..9641941 100644 --- a/src/makefile/command_line.rs +++ b/src/makefile/command_line.rs @@ -87,7 +87,10 @@ impl CommandLine { // sometimes this is defined in macros rather than statically let execution_line: String = { - let mut line_chars = execution_line.chars().peekable(); + let mut line_chars = execution_line + .chars() + .skip_while(char::is_ascii_whitespace) + .peekable(); while let Some(x) = line_chars.next_if(|x| matches!(x, '-' | '@' | '+')) { match x { '-' => ignore_errors = true, |