From e9493f69ebc706a974b1650cded21b70115668de Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Mon, 5 Oct 2015 00:58:07 -0400 Subject: [PATCH] Fix cross compilation suffix detection If the path involves `-`, this would have otherwise detected this as a cross compile suffix. --- c_check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_check b/c_check index 0fdadb659..d694e7411 100644 --- a/c_check +++ b/c_check @@ -30,7 +30,7 @@ if ($ARGV[0] =~ /(.*)(-[.\d]+)/) { $cross_suffix = $1; } } else { - if ($ARGV[0] =~ /(.*-)(.*)/) { + if ($ARGV[0] =~ /([^\/]*-)([^\/]*$)/) { $cross_suffix = $1; } }