From f66687b95aa36d92cb3aebc7af6aa7a27cd4f618 Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Mon, 7 Oct 2024 15:45:28 +0200 Subject: [PATCH] Allow `-pthread` in `link.txt` --- pkg_swift_llvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg_swift_llvm.py b/pkg_swift_llvm.py index 5d95c7c..22c8e76 100755 --- a/pkg_swift_llvm.py +++ b/pkg_swift_llvm.py @@ -80,7 +80,7 @@ def get_libs(configured): ret.static.append((configured / l).absolute()) elif l.endswith(".so") or l.endswith(".tbd") or l.endswith(".dylib"): ret.shared.append((configured / l).absolute()) - elif l.startswith(("-L", "-Wl", "-l")): + elif l.startswith(("-L", "-Wl", "-l")) or l == "-pthread": ret.linker_flags.append(l) else: raise ValueError(f"cannot understand link.txt: " + l)