def check_module_linking(self):
    '\n        Warn if shared modules are linked with target: (link_with) #2865\n        '
    for link_target in self.link_targets:
        if isinstance(link_target, SharedModule):
            if for_darwin(self.is_cross, self.environment):
                raise MesonException('target links against shared modules.\nThis is not permitted on OSX')
            else:
                mlog.warning('target links against shared modules. This is not\nrecommended as it is not supported on some platforms')
            return
Warn if shared modules are linked with target: (link_with) #2865
def check_module_linking(self):
    '\n        \n        '
    for link_target in self.link_targets:
        if isinstance(link_target, SharedModule):
            if for_darwin(self.is_cross, self.environment):
                raise MesonException('target links against shared modules.\nThis is not permitted on OSX')
            else:
                mlog.warning('target links against shared modules. This is not\nrecommended as it is not supported on some platforms')
            return