Updated CROSS_SUFFIX regex to work with CC containing arguments

This commit is contained in:
Paul MUSTIÈRE 2016-09-14 11:42:22 -07:00
parent b09cc3b9bb
commit 157ee498ac
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ if (dirname($compiler_name) ne ".") {
$cross_suffix .= dirname($compiler_name) . "/";
}
if (basename($compiler_name) =~ /(.*-)(.*)/) {
if (basename($compiler_name) =~ /([^\s]*-)(.*)/) {
$cross_suffix .= $1;
}