Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 54d8c7f

Browse files
committed
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
1 parent a321716 commit 54d8c7f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

utils/llvm-build/llvmbuild/componentinfo.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ def __init__(self, subpath, name, dependencies, parent):
4545
# The original source path.
4646
self._source_path = None
4747

48+
# A flag to mark "special" components which have some amount of magic
49+
# handling (generally based on command line options).
50+
self._is_special_group = False
51+
4852
def set_parent_instance(self, parent):
4953
assert parent.name == self.parent, "Unexpected parent!"
5054
self.parent_instance = parent
@@ -197,7 +201,7 @@ def get_llvmbuild_fragment(self):
197201
print >>result, 'type = %s' % self.type_name
198202
print >>result, 'name = %s' % self.name
199203
print >>result, 'parent = %s' % self.parent
200-
if self.required_libraries:
204+
if self.required_libraries and not self._is_special_group:
201205
print >>result, 'required_libraries = %s' % ' '.join(
202206
self.required_libraries)
203207
if self.add_to_library_groups:

utils/llvm-build/llvmbuild/main.py

+1
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,7 @@ def find_special_group(name):
666666
fatal("special component %r must have empty %r list" % (
667667
name, 'add_to_library_groups'))
668668

669+
info._is_special_group = True
669670
return info
670671

671672
info_map = dict((ci.name, ci) for ci in project.component_infos)

0 commit comments

Comments
 (0)