Move default is_linkable_target method up from BuildTarget to Target

BuildTarget.link() assumes that it can call is_linkable_target() on any
objects which are a subclass of Target
pull/4174/head
Jon Turney 6 years ago
parent e22b69bd17
commit 44a340a4fe
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 5
      mesonbuild/build.py

@ -363,6 +363,8 @@ a hard error in the future.''' % name)
result[k] = v result[k] = v
return result return result
def is_linkable_target(self):
return False
class BuildTarget(Target): class BuildTarget(Target):
known_kwargs = known_build_target_kwargs known_kwargs = known_build_target_kwargs
@ -1104,9 +1106,6 @@ You probably should put it in link_with instead.''')
return True return True
return False return False
def is_linkable_target(self):
return False
def check_module_linking(self): def check_module_linking(self):
''' '''
Warn if shared modules are linked with target: (link_with) #2865 Warn if shared modules are linked with target: (link_with) #2865

Loading…
Cancel
Save