Skip to content

Commit 7ba1753

Browse files
committed
unix: properly parse -hidden-l into links annotation
This is a follow-up to d5ea053 to fix broken static library links annotations on macOS builds.
1 parent d5ea053 commit 7ba1753

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pythonbuild/cpython.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ def parse_setup_line(line: bytes, variant: str):
130130
elif word.startswith(b"-l"):
131131
links.add(word[2:].decode("ascii"))
132132

133+
elif word.startswith(b"-hidden-l"):
134+
links.add(word[len("-hidden-l") :].decode("ascii"))
135+
133136
elif word == b"-framework":
134137
frameworks.add(words[i + 1].decode("ascii"))
135138

0 commit comments

Comments
 (0)