From 57ce7d461877b2ad8da4f4712879880148759bc6 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 21 Oct 2016 07:38:32 +0530 Subject: Add support for extracting objects in unity builds Not only does extract_all_objects() now work properly again, extract_objects() also works if you specify a subset of sources all of which have been compiled into a single unified object. So, for instance, this allows you to extract all the objects corresponding to the C sources compiled into a target consisting of C and C++ sources. --- mesonbuild/interpreter.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'mesonbuild/interpreter.py') diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 44b5748..cc46665 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -2571,8 +2571,6 @@ requirements use the version keyword argument instead.''') else: obj = self.evaluate_statement(invokable) method_name = node.name - if method_name == 'extract_objects' and self.environment.coredata.get_builtin_option('unity'): - raise InterpreterException('Single object files can not be extracted in Unity builds.') args = node.args if isinstance(obj, mparser.StringNode): obj = obj.get_value() -- cgit v1.1