aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'build.py')
-rw-r--r--build.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.py b/build.py
index 9cdd06e..04f59ab 100644
--- a/build.py
+++ b/build.py
@@ -159,7 +159,9 @@ class BuildTarget():
self.process_objectlist(objects)
self.process_kwargs(kwargs, environment)
self.check_unknown_kwargs(kwargs)
- if len(self.sources) == 0 and len(self.generated) == 0:
+ if len(self.sources) == 0 and \
+ len(self.generated) == 0 and \
+ len(self.objects) == 0:
raise InvalidArguments('Build target %s has no sources.' % name)
self.validate_sources()
@@ -255,6 +257,9 @@ class BuildTarget():
obj_src.append(src)
return ExtractedObjects(self, obj_src)
+ def extract_all_objects(self):
+ return ExtractedObjects(self, self.sources)
+
def get_rpaths(self):
return self.get_transitive_rpaths()