diff options
-rw-r--r-- | yapymake/makefile/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yapymake/makefile/__init__.py b/yapymake/makefile/__init__.py index 5e879d0..086ea2c 100644 --- a/yapymake/makefile/__init__.py +++ b/yapymake/makefile/__init__.py @@ -367,7 +367,7 @@ class CommandLine: tokens_iter = iter(line) first_token = next(tokens_iter) if isinstance(first_token, TextToken): - while first_token.text[0] in ['-', '@', '+']: + while len(first_token.text) > 0 and first_token.text[0] in ['-', '@', '+']: if first_token.text[0] == '-': self.ignore_errors = True elif first_token.text[0] == '@': |