llvm.org GIT mirror llvm / 54d8c7f
llvm-build: Don't write out the required_libraries list for "special" components, it is generated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146435 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 8 years ago
2 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4343
4444 # The original source path.
4545 self._source_path = None
46
47 # A flag to mark "special" components which have some amount of magic
48 # handling (generally based on command line options).
49 self._is_special_group = False
4650
4751 def set_parent_instance(self, parent):
4852 assert parent.name == self.parent, "Unexpected parent!"
196200 print >>result, 'type = %s' % self.type_name
197201 print >>result, 'name = %s' % self.name
198202 print >>result, 'parent = %s' % self.parent
199 if self.required_libraries:
203 if self.required_libraries and not self._is_special_group:
200204 print >>result, 'required_libraries = %s' % ' '.join(
201205 self.required_libraries)
202206 if self.add_to_library_groups:
665665 fatal("special component %r must have empty %r list" % (
666666 name, 'add_to_library_groups'))
667667
668 info._is_special_group = True
668669 return info
669670
670671 info_map = dict((ci.name, ci) for ci in project.component_infos)