aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-03-09 23:08:22 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-03-09 23:08:22 +0200
commit5f6c928e2b92d7bd598bba38e0494e45a7b3a686 (patch)
treee43b270b163dffd920070947f2c1471478ed1118 /backends.py
parent347c2634311f8a70f2db5251358eace9f0e0eb38 (diff)
downloadmeson-5f6c928e2b92d7bd598bba38e0494e45a7b3a686.zip
meson-5f6c928e2b92d7bd598bba38e0494e45a7b3a686.tar.gz
meson-5f6c928e2b92d7bd598bba38e0494e45a7b3a686.tar.bz2
Library and program objects can be serialised.
Diffstat (limited to 'backends.py')
-rwxr-xr-xbackends.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/backends.py b/backends.py
index 0de3ff4..cf116a2 100755
--- a/backends.py
+++ b/backends.py
@@ -143,8 +143,7 @@ class Backend():
if isinstance(target, interpreter.SharedLibrary):
commands += compiler.get_pic_flags()
for dep in target.get_external_deps():
- if isinstance(dep, environment.Dependency):
- commands += dep.get_compile_flags()
+ commands += dep.get_compile_flags()
return commands
def build_target_link_arguments(self, deps):
@@ -538,10 +537,7 @@ class NinjaBackend(Backend):
else:
raise RuntimeError('Unknown build target type.')
for dep in target.get_external_deps():
- if isinstance(dep, environment.Dependency):
- commands += dep.get_link_flags()
- else:
- commands.append(dep.get_filename())
+ commands += dep.get_link_flags()
dependencies = target.get_dependencies()
commands += self.build_target_link_arguments(dependencies)
if self.environment.coredata.coverage: