mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-28 15:54:00 +00:00
llvm-config: Add an all-targets pseudo-component.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142399 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
817cb964e2
commit
a6b1929657
@ -314,6 +314,7 @@ sub build_name_map {
|
||||
}
|
||||
|
||||
# Add target-specific entries
|
||||
my @all_targets;
|
||||
foreach my $target (@TARGETS_BUILT) {
|
||||
# FIXME: Temporary, until we don't switch all targets
|
||||
if (defined $NAME_MAP{$target.'asmprinter'}) {
|
||||
@ -321,8 +322,8 @@ sub build_name_map {
|
||||
$target.'asmprinter',
|
||||
$target.'codegen']
|
||||
} elsif (defined $NAME_MAP{$target.'codegen'}) {
|
||||
$NAME_MAP{$target} = [$target.'info',
|
||||
$target.'codegen']
|
||||
$NAME_MAP{$target} = [$target.'info',
|
||||
$target.'codegen']
|
||||
} else {
|
||||
$NAME_MAP{$target} = [$target.'info',
|
||||
$NAME_MAP{$target}[0]]
|
||||
@ -335,6 +336,8 @@ sub build_name_map {
|
||||
if (defined $NAME_MAP{$target.'disassembler'}) {
|
||||
push @{$NAME_MAP{$target}},$target.'disassembler'
|
||||
}
|
||||
|
||||
push @all_targets, $target;
|
||||
}
|
||||
|
||||
# Add virtual entries.
|
||||
@ -342,6 +345,7 @@ sub build_name_map {
|
||||
$NAME_MAP{'nativecodegen'} = have_native_backend() ? [$ARCH.'codegen'] : [];
|
||||
$NAME_MAP{'backend'} = have_native_backend() ? ['native'] : ['cbackend'];
|
||||
$NAME_MAP{'engine'} = find_best_engine;
|
||||
$NAME_MAP{'all-targets'} = \@all_targets;
|
||||
$NAME_MAP{'all'} = [name_map_entries]; # Must be last.
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user