[llvm-commits] [llvm] r146435 - in /llvm/trunk/utils/llvm-build/llvmbuild: componentinfo.py main.py
Daniel Dunbar
daniel at zuster.org
Mon Dec 12 14:45:41 PST 2011
Author: ddunbar
Date: Mon Dec 12 16:45:41 2011
New Revision: 146435
URL: http://llvm.org/viewvc/llvm-project?rev=146435&view=rev
Log:
llvm-build: Don't write out the required_libraries list for "special" components, it is generated.
Modified:
llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py
llvm/trunk/utils/llvm-build/llvmbuild/main.py
Modified: llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py?rev=146435&r1=146434&r2=146435&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py (original)
+++ llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py Mon Dec 12 16:45:41 2011
@@ -45,6 +45,10 @@
# 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 @@
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:
Modified: llvm/trunk/utils/llvm-build/llvmbuild/main.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-build/llvmbuild/main.py?rev=146435&r1=146434&r2=146435&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-build/llvmbuild/main.py (original)
+++ llvm/trunk/utils/llvm-build/llvmbuild/main.py Mon Dec 12 16:45:41 2011
@@ -666,6 +666,7 @@
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)
More information about the llvm-commits
mailing list