Merge pull request #968 from buffer51/develop

Updated CROSS_SUFFIX regex to work with CC containing arguments
This commit is contained in:
Zhang Xianyi 2016-09-22 11:34:57 -04:00 committed by GitHub
commit 161c927071
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;
}