llvm.org GIT mirror llvm / a6b1929
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 Daniel Dunbar 9 years ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
313313 }
314314
315315 # Add target-specific entries
316 my @all_targets;
316317 foreach my $target (@TARGETS_BUILT) {
317318 # FIXME: Temporary, until we don't switch all targets
318319 if (defined $NAME_MAP{$target.'asmprinter'}) {
320321 $target.'asmprinter',
321322 $target.'codegen']
322323 } elsif (defined $NAME_MAP{$target.'codegen'}) {
323 $NAME_MAP{$target} = [$target.'info',
324 $target.'codegen']
324 $NAME_MAP{$target} = [$target.'info',
325 $target.'codegen']
325326 } else {
326327 $NAME_MAP{$target} = [$target.'info',
327328 $NAME_MAP{$target}[0]]
334335 if (defined $NAME_MAP{$target.'disassembler'}) {
335336 push @{$NAME_MAP{$target}},$target.'disassembler'
336337 }
338
339 push @all_targets, $target;
337340 }
338341
339342 # Add virtual entries.
341344 $NAME_MAP{'nativecodegen'} = have_native_backend() ? [$ARCH.'codegen'] : [];
342345 $NAME_MAP{'backend'} = have_native_backend() ? ['native'] : ['cbackend'];
343346 $NAME_MAP{'engine'} = find_best_engine;
347 $NAME_MAP{'all-targets'} = \@all_targets;
344348 $NAME_MAP{'all'} = [name_map_entries]; # Must be last.
345349 }
346350