From 7ba1753a2f608740c518d9f32c6221e54007ea14 Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Mon, 2 May 2022 18:00:18 -0700 Subject: [PATCH] unix: properly parse -hidden-l into links annotation This is a follow-up to d5ea0535ff1d9e5608e651b3b20381beaaaeafb7 to fix broken static library links annotations on macOS builds. --- pythonbuild/cpython.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pythonbuild/cpython.py b/pythonbuild/cpython.py index 1f068e47..ced04b44 100644 --- a/pythonbuild/cpython.py +++ b/pythonbuild/cpython.py @@ -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"))