aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-09-13 16:57:34 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2018-09-13 17:02:43 +0100
commit44a340a4fe16db80fc4fd16311b27843916a5f7f (patch)
tree7bbede03b564beb0165e4434b9deee04ee3cabe3
parente22b69bd17ccce5fdd6c0df36bd5dd34f6a1db19 (diff)
downloadmeson-44a340a4fe16db80fc4fd16311b27843916a5f7f.zip
meson-44a340a4fe16db80fc4fd16311b27843916a5f7f.tar.gz
meson-44a340a4fe16db80fc4fd16311b27843916a5f7f.tar.bz2
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
-rw-r--r--mesonbuild/build.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index b86c84d..5538dfc 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -363,6 +363,8 @@ a hard error in the future.''' % name)
result[k] = v
return result
+ def is_linkable_target(self):
+ return False
class BuildTarget(Target):
known_kwargs = known_build_target_kwargs
@@ -1104,9 +1106,6 @@ You probably should put it in link_with instead.''')
return True
return False
- def is_linkable_target(self):
- return False
-
def check_module_linking(self):
'''
Warn if shared modules are linked with target: (link_with) #2865