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 | c352caf168094c83f05a8010ca14c2e643dbf618 (patch) | |
tree | 5493f3b1c5171f126086d932df15539b37f77ef3 /utils/llvm-build/llvmbuild/main.py | |
parent | 1e5b24330b11fb2631c7bc2892ba6364309fe385 (diff) |
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).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/llvm-build/llvmbuild/main.py')
-rw-r--r-- | utils/llvm-build/llvmbuild/main.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/llvm-build/llvmbuild/main.py b/utils/llvm-build/llvmbuild/main.py index 2a9ef5d907..cc4617d9b9 100644 --- a/utils/llvm-build/llvmbuild/main.py +++ b/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 = [ |