We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5fa7be commit ef30257Copy full SHA for ef30257
src/SPC/toolchain/GccNativeToolchain.php
@@ -42,7 +42,7 @@ public function getCompilerInfo(): ?string
42
$compiler = getenv('CC') ?: 'gcc';
43
$version = shell(false)->execWithResult("{$compiler} --version", false);
44
$head = pathinfo($compiler, PATHINFO_BASENAME);
45
- if ($version[0] === 0 && preg_match('/gcc.*(\d+.\d+.\d+)/', $version[1][0], $match)) {
+ if ($version[0] === 0 && preg_match('/gcc.*?(\d+\.\d+\.\d+)/', $version[1][0], $match)) {
46
return "{$head} {$match[1]}";
47
}
48
return $head;
0 commit comments