Skip to content

Commit ccf581f

Browse files
committed
Merge pull request #659 from Keno/patch-2
Fix cross compilation suffix detection
2 parents f27942a + e9493f6 commit ccf581f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

c_check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if ($ARGV[0] =~ /(.*)(-[.\d]+)/) {
3030
$cross_suffix = $1;
3131
}
3232
} else {
33-
if ($ARGV[0] =~ /(.*-)(.*)/) {
33+
if ($ARGV[0] =~ /([^\/]*-)([^\/]*$)/) {
3434
$cross_suffix = $1;
3535
}
3636
}

0 commit comments

Comments
 (0)