Skip to content

Commit e9493f6

Browse files
committed
Fix cross compilation suffix detection
If the path involves `-`, this would have otherwise detected this as a cross compile suffix.
1 parent f27942a commit e9493f6

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)