Skip to content

Commit

Permalink
unix: properly parse -hidden-l into links annotation
Browse files Browse the repository at this point in the history
This is a follow-up to d5ea053 to
fix broken static library links annotations on macOS builds.
  • Loading branch information
indygreg committed May 3, 2022
1 parent d5ea053 commit 7ba1753
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pythonbuild/cpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ def parse_setup_line(line: bytes, variant: str):
elif word.startswith(b"-l"):
links.add(word[2:].decode("ascii"))

elif word.startswith(b"-hidden-l"):
links.add(word[len("-hidden-l") :].decode("ascii"))

elif word == b"-framework":
frameworks.add(words[i + 1].decode("ascii"))

Expand Down

0 comments on commit 7ba1753

Please sign in to comment.