Skip to content

Commit df60ccf

Browse files
committed
also make sure clang version uses dots
1 parent 2ed8bbf commit df60ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/toolchain/ClangNativeToolchain.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getCompilerInfo(): ?string
4545
$compiler = getenv('CC') ?: 'clang';
4646
$version = shell(false)->execWithResult("{$compiler} --version", false);
4747
$head = pathinfo($compiler, PATHINFO_BASENAME);
48-
if ($version[0] === 0 && preg_match('/clang version (\d+.\d+.\d+)/', $version[1][0], $match)) {
48+
if ($version[0] === 0 && preg_match('/clang version (\d+\.\d+\.\d+)/', $version[1][0], $match)) {
4949
return "{$head} {$match[1]}";
5050
}
5151
return $head;

0 commit comments

Comments
 (0)