diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-11-10 00:49:51 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-11-10 00:49:51 +0000 |
commit | 82219ad4dc10d0ba49bb5681ce4b4718ab816a87 (patch) | |
tree | d8420a7f34929b47063db2ed98f1411345cfb3f5 /llvm/utils/llvm-build/llvmbuild/main.py | |
parent | c83a459937400e4fc4c6a033a0b62a4f3a3a668b (diff) | |
download | bcm5719-llvm-82219ad4dc10d0ba49bb5681ce4b4718ab816a87.tar.gz bcm5719-llvm-82219ad4dc10d0ba49bb5681ce4b4718ab816a87.zip |
llvm-build: Add an explicit component type to represent targets.
- Gives us a place to hang target specific metadata (like whether the target has a JIT).
llvm-svn: 144250
Diffstat (limited to 'llvm/utils/llvm-build/llvmbuild/main.py')
-rw-r--r-- | llvm/utils/llvm-build/llvmbuild/main.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/utils/llvm-build/llvmbuild/main.py b/llvm/utils/llvm-build/llvmbuild/main.py index 2a9ef5d9073..cc4617d9b99 100644 --- a/llvm/utils/llvm-build/llvmbuild/main.py +++ b/llvm/utils/llvm-build/llvmbuild/main.py @@ -242,8 +242,8 @@ class LLVMProjectInfo(object): # dependencies for added library groups. entries = {} for c in self.ordered_component_infos: - # Only Library and LibraryGroup components are in the table. - if c.type_name not in ('Library', 'LibraryGroup'): + # Only certain components are in the table. + if c.type_name not in ('Library', 'LibraryGroup', 'TargetGroup'): continue # Compute the llvm-config "component name". For historical reasons, @@ -251,10 +251,10 @@ class LLVMProjectInfo(object): llvmconfig_component_name = c.get_llvmconfig_component_name() # Get the library name, or None for LibraryGroups. - if c.type_name == 'LibraryGroup': - library_name = None - else: + if c.type_name == 'Library': library_name = c.get_library_name() + else: + library_name = None # Get the component names of all the required libraries. required_llvmconfig_component_names = [ |