diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-03-09 23:08:22 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-03-09 23:08:22 +0200 |
commit | 5f6c928e2b92d7bd598bba38e0494e45a7b3a686 (patch) | |
tree | e43b270b163dffd920070947f2c1471478ed1118 /backends.py | |
parent | 347c2634311f8a70f2db5251358eace9f0e0eb38 (diff) | |
download | meson-5f6c928e2b92d7bd598bba38e0494e45a7b3a686.zip meson-5f6c928e2b92d7bd598bba38e0494e45a7b3a686.tar.gz meson-5f6c928e2b92d7bd598bba38e0494e45a7b3a686.tar.bz2 |
Library and program objects can be serialised.
Diffstat (limited to 'backends.py')
-rwxr-xr-x | backends.py | 8 |
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: |