mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
llvm-build: Don't write out the required_libraries list for "special" components, it is generated.
llvm-svn: 146435
This commit is contained in:
parent
ecff3756fa
commit
495f7b57f8
@ -45,6 +45,10 @@ class ComponentInfo(object):
|
||||
# The original source path.
|
||||
self._source_path = None
|
||||
|
||||
# A flag to mark "special" components which have some amount of magic
|
||||
# handling (generally based on command line options).
|
||||
self._is_special_group = False
|
||||
|
||||
def set_parent_instance(self, parent):
|
||||
assert parent.name == self.parent, "Unexpected parent!"
|
||||
self.parent_instance = parent
|
||||
@ -197,7 +201,7 @@ class LibraryGroupComponentInfo(ComponentInfo):
|
||||
print >>result, 'type = %s' % self.type_name
|
||||
print >>result, 'name = %s' % self.name
|
||||
print >>result, 'parent = %s' % self.parent
|
||||
if self.required_libraries:
|
||||
if self.required_libraries and not self._is_special_group:
|
||||
print >>result, 'required_libraries = %s' % ' '.join(
|
||||
self.required_libraries)
|
||||
if self.add_to_library_groups:
|
||||
|
@ -666,6 +666,7 @@ def add_magic_target_components(parser, project, opts):
|
||||
fatal("special component %r must have empty %r list" % (
|
||||
name, 'add_to_library_groups'))
|
||||
|
||||
info._is_special_group = True
|
||||
return info
|
||||
|
||||
info_map = dict((ci.name, ci) for ci in project.component_infos)
|
||||
|
Loading…
Reference in New Issue
Block a user