aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit177a119621f14a6ced87982ada75372815b636cf (patch)
tree0fdbed0f5c118afdd51db1f22e25b1eec3c98009 /utils/llvm-build/llvmbuild/main.py
parente1accd76606721d3efcdc9b511b74e64c9ac3947 (diff)
downloadexternal_llvm-177a119621f14a6ced87982ada75372815b636cf.zip
external_llvm-177a119621f14a6ced87982ada75372815b636cf.tar.gz
external_llvm-177a119621f14a6ced87982ada75372815b636cf.tar.bz2
llvm-build: Don't emit library information for disabled targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/llvm-build/llvmbuild/main.py')
-rw-r--r--utils/llvm-build/llvmbuild/main.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/llvm-build/llvmbuild/main.py b/utils/llvm-build/llvmbuild/main.py
index 2be9cd6..48b59bd 100644
--- a/utils/llvm-build/llvmbuild/main.py
+++ b/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'):