Skip to content

Commit

Permalink
Update clike.py
Browse files Browse the repository at this point in the history
fix an issue where -isystem parameter could be removed incorrectly
  • Loading branch information
RootHide authored Jan 7, 2024
1 parent fbc744e commit 54f5798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/compilers/mixins/clike.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def to_native(self, copy: bool = False) -> T.List[str]:
bad_idx_list += [i, i + 1]
elif each.startswith('-isystem=') and self._cached_realpath(each[9:]) in real_default_dirs:
bad_idx_list += [i]
elif self._cached_realpath(each[8:]) in real_default_dirs:
elif len(each)>8 and self._cached_realpath(each[8:]) in real_default_dirs:
bad_idx_list += [i]
for i in reversed(bad_idx_list):
new.pop(i)
Expand Down

0 comments on commit 54f5798

Please sign in to comment.