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 2ed8bbf commit df60ccfCopy full SHA for df60ccf
src/SPC/toolchain/ClangNativeToolchain.php
@@ -45,7 +45,7 @@ public function getCompilerInfo(): ?string
45
$compiler = getenv('CC') ?: 'clang';
46
$version = shell(false)->execWithResult("{$compiler} --version", false);
47
$head = pathinfo($compiler, PATHINFO_BASENAME);
48
- if ($version[0] === 0 && preg_match('/clang version (\d+.\d+.\d+)/', $version[1][0], $match)) {
+ if ($version[0] === 0 && preg_match('/clang version (\d+\.\d+\.\d+)/', $version[1][0], $match)) {
49
return "{$head} {$match[1]}";
50
}
51
return $head;
0 commit comments