parent
54e7880bf0
commit
2f9bea15f0
|
@ -169,7 +169,6 @@ sub find_best_engine;
|
||||||
sub expand_names (@);
|
sub expand_names (@);
|
||||||
sub find_all_required_sets (@);
|
sub find_all_required_sets (@);
|
||||||
sub find_all_required_sets_helper ($$@);
|
sub find_all_required_sets_helper ($$@);
|
||||||
sub maybe_fix_core (@);
|
|
||||||
|
|
||||||
# Each "set" contains one or more libraries which must be included as a
|
# Each "set" contains one or more libraries which must be included as a
|
||||||
# group (due to cyclic dependencies). Sets are represented as a Perl array
|
# group (due to cyclic dependencies). Sets are represented as a Perl array
|
||||||
|
@ -192,11 +191,10 @@ sub expand_dependecies (@) {
|
||||||
my @required_sets = find_all_required_sets(expand_names(@libs));
|
my @required_sets = find_all_required_sets(expand_names(@libs));
|
||||||
my @sorted_sets = topologically_sort_sets(@required_sets);
|
my @sorted_sets = topologically_sort_sets(@required_sets);
|
||||||
|
|
||||||
# Expand the library sets into libraries, and apply any
|
# Expand the library sets into libraries.
|
||||||
# platform-specific hackery.
|
|
||||||
my @result;
|
my @result;
|
||||||
foreach my $set (@sorted_sets) { push @result, @{$set}; }
|
foreach my $set (@sorted_sets) { push @result, @{$set}; }
|
||||||
return maybe_fix_core(@result);
|
return @result;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Load in the raw dependency data stored at the end of this file.
|
# Load in the raw dependency data stored at the end of this file.
|
||||||
|
@ -352,17 +350,6 @@ sub topologically_sort_sets (@) {
|
||||||
return reverse(@result);
|
return reverse(@result);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Nasty hack to work around the fact that LLVMCore changes file type on
|
|
||||||
# certain platforms.
|
|
||||||
sub maybe_fix_core (@) {
|
|
||||||
my @libs = @_;
|
|
||||||
my @result;
|
|
||||||
foreach my $lib (@libs) {
|
|
||||||
push @result, $lib;
|
|
||||||
}
|
|
||||||
return @result;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Our library dependency data will be added after the '__END__' token, and will
|
# Our library dependency data will be added after the '__END__' token, and will
|
||||||
# be read through the magic <DATA> filehandle.
|
# be read through the magic <DATA> filehandle.
|
||||||
__END__
|
__END__
|
||||||
|
|
Loading…
Reference in New Issue