|
|
|
@ -732,11 +732,12 @@ class NinjaBackend(backends.Backend): |
|
|
|
|
commands += linker.get_std_link_flags() |
|
|
|
|
else: |
|
|
|
|
raise RuntimeError('Unknown build target type.') |
|
|
|
|
for dep in target.get_external_deps(): |
|
|
|
|
commands += dep.get_link_flags() |
|
|
|
|
dependencies = target.get_dependencies() |
|
|
|
|
commands += self.build_target_link_arguments(linker, dependencies) |
|
|
|
|
commands += target.link_flags |
|
|
|
|
# External deps must be last because target link libraries may depend on them. |
|
|
|
|
for dep in target.get_external_deps(): |
|
|
|
|
commands += dep.get_link_flags() |
|
|
|
|
commands += linker.build_rpath_args(self.environment.get_build_dir(), target.get_rpaths()) |
|
|
|
|
if self.environment.coredata.coverage: |
|
|
|
|
commands += linker.get_coverage_link_flags() |
|
|
|
|