Fix cross compilation suffix detection

If the path involves `-`, this would have otherwise detected this as a cross compile suffix.
This commit is contained in:
Keno Fischer 2015-10-05 00:58:07 -04:00
parent f27942a68a
commit e9493f69eb
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ if ($ARGV[0] =~ /(.*)(-[.\d]+)/) {
$cross_suffix = $1;
}
} else {
if ($ARGV[0] =~ /(.*-)(.*)/) {
if ($ARGV[0] =~ /([^\/]*-)([^\/]*$)/) {
$cross_suffix = $1;
}
}