Skip to content

Commit

Permalink
llvm-build: Don't write out the required_libraries list for "special"…
Browse files Browse the repository at this point in the history
… components, it is generated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146435 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Dec 12, 2011
1 parent a321716 commit 54d8c7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/llvm-build/llvmbuild/componentinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def __init__(self, subpath, name, dependencies, parent):
# 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
Expand Down Expand Up @@ -197,7 +201,7 @@ def get_llvmbuild_fragment(self):
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:
Expand Down
1 change: 1 addition & 0 deletions utils/llvm-build/llvmbuild/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ def find_special_group(name):
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)
Expand Down

0 comments on commit 54d8c7f

Please sign in to comment.