Merge pull request #659 from Keno/patch-2

Fix cross compilation suffix detection
This commit is contained in:
Zhang Xianyi 2015-10-05 10:23:52 -05:00
commit ccf581f94d
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;
}
}