summaryrefslogtreecommitdiffstats
path: root/llvm/utils/llvm-build/llvmbuild/main.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-05-15 18:44:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-05-15 18:44:12 +0000
commitf876da13d0de82fdb79ec09eec571378d9399da1 (patch)
tree14ab6d255b39dbb3351b06f2ff6db463707d245b /llvm/utils/llvm-build/llvmbuild/main.py
parentbf0bf743d7ed6c2e768bc92d4c09c21a7b6edc0e (diff)
downloadbcm5719-llvm-f876da13d0de82fdb79ec09eec571378d9399da1.tar.gz
bcm5719-llvm-f876da13d0de82fdb79ec09eec571378d9399da1.zip
llvm-build: Don't emit library information for disabled targets.
llvm-svn: 156837
Diffstat (limited to 'llvm/utils/llvm-build/llvmbuild/main.py')
-rw-r--r--llvm/utils/llvm-build/llvmbuild/main.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/utils/llvm-build/llvmbuild/main.py b/llvm/utils/llvm-build/llvmbuild/main.py
index 2be9cd6b446..48b59bdac38 100644
--- a/llvm/utils/llvm-build/llvmbuild/main.py
+++ b/llvm/utils/llvm-build/llvmbuild/main.py
@@ -319,11 +319,16 @@ subdirectories = %s
# dependencies for added library groups.
entries = {}
for c in self.ordered_component_infos:
- # Skip optional components which are not enabled
+ # Skip optional components which are not enabled.
if c.type_name == 'OptionalLibrary' \
and c.name not in enabled_optional_components:
continue
+ # Skip target groups which are not enabled.
+ tg = c.get_parent_target_group()
+ if tg and not tg.enabled:
+ continue
+
# Only certain components are in the table.
if c.type_name not in ('Library', 'OptionalLibrary', \
'LibraryGroup', 'TargetGroup'):
OpenPOWER on IntegriCloud