Skip to content
Snippets Groups Projects
Commit 80e6499a authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

reorder versions hash to get the versions for each compiler rather than all

parent 54380f08
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ $|=1;
my $args = "@ARGV";
my $vb = ($args=~/-v/) ? 1 : 0;
my %versions;
my @compilers = ('gcc','clang');
my $compiler_regexp = join('|',@compilers);
......@@ -27,7 +26,7 @@ foreach my $compiler (@compilers)
foreach my $executable (@executables)
{
build($executable);
# build($executable);
}
}
......@@ -44,13 +43,14 @@ sub find_executables
/$compiler-?\d*(\.\d+)*$/
}split(/\n/,`bash -c "compgen -ca $compiler"`);
chomp @executables;
# sort by string length
@executables = sort {
length($a) <=> length($b)
} @executables;
# get versions : we want a unique list by version
my %versions;
foreach my $executable (@executables)
{
my $v = version_of($executable);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment