build: CustomTargetIndex.is_linkable_target misses '.dylib'

CustomTarget.is_linkable_target has '.dylib'.

See also 93b1d31af9 that added '.dylib'
to CustomTarget.is_linkable_target but didn't add '.dylib' to
CustomTargetIndex.is_linkable_target.
pull/10480/head
Sutou Kouhei 3 years ago committed by Eli Schwartz
parent 0aeb61bd52
commit f6e7cc070e
  1. 2
      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

Loading…
Cancel
Save