Ninja backend: objects generated with custom_target can be linked

pull/15/head
Juhani Simola 10 years ago
parent 174db67471
commit d6a21792c3
  1. 2
      ninjabackend.py

@ -206,6 +206,8 @@ class NinjaBackend(backends.Backend):
else: else:
obj_list.append(self.generate_single_compile(target, outfile, RawFilename(src), True, obj_list.append(self.generate_single_compile(target, outfile, RawFilename(src), True,
header_deps)) header_deps))
elif self.environment.is_object(src):
obj_list.append(src)
else: else:
# Assume anything not specifically a source file is a header. This is because # Assume anything not specifically a source file is a header. This is because
# people generate files with weird suffixes (.inc, .fh) that they then include # people generate files with weird suffixes (.inc, .fh) that they then include

Loading…
Cancel
Save