From f6e7cc070e537ab6585536727f5ea380fb998f3d Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Fri, 10 Jun 2022 11:36:31 +0900 Subject: build: CustomTargetIndex.is_linkable_target misses '.dylib' CustomTarget.is_linkable_target has '.dylib'. See also 93b1d31af9d90f306aa104eee1e9be8e1ebbacad that added '.dylib' to CustomTarget.is_linkable_target but didn't add '.dylib' to CustomTargetIndex.is_linkable_target. --- mesonbuild/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 3de5ef4..9513d18 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -2772,7 +2772,7 @@ class CustomTargetIndex(HoldableObject): def is_linkable_target(self) -> bool: suf = os.path.splitext(self.output)[-1] - return suf in {'.a', '.dll', '.lib', '.so'} + return suf in {'.a', '.dll', '.lib', '.so', '.dylib'} def links_dynamically(self) -> bool: """Whether this target links dynamically or statically -- cgit v1.1