Fix clang version detection regexes (#2549)
This commit is contained in:
Родитель
fda964082e
Коммит
5c1fc3f723
|
@ -1017,28 +1017,29 @@ export abstract class CMakeDriver implements vscode.Disposable {
|
|||
captureGroup: 1
|
||||
},
|
||||
// clang -v: clang version 10.0.0-4ubuntu1
|
||||
// or clang version 5.0.0 (tags/RELEASE_500/final)
|
||||
{
|
||||
name: "clang",
|
||||
versionSwitch: "-v",
|
||||
versionOutputRegexp: "(Apple LLVM|clang) version (.*)- ",
|
||||
versionOutputRegexp: "(Apple LLVM|clang) version ([^\\s-]+)",
|
||||
captureGroup: 2
|
||||
},
|
||||
{
|
||||
name: "clang-cl",
|
||||
versionSwitch: "-v",
|
||||
versionOutputRegexp: "(Apple LLVM|clang) version (.*)- ",
|
||||
versionOutputRegexp: "(Apple LLVM|clang) version ([^\\s-]+)",
|
||||
captureGroup: 2
|
||||
},
|
||||
{
|
||||
name: "clang++",
|
||||
versionSwitch: "-v",
|
||||
versionOutputRegexp: "(Apple LLVM|clang) version (.*)- ",
|
||||
versionOutputRegexp: "(Apple LLVM|clang) version ([^\\s-]+)",
|
||||
captureGroup: 2
|
||||
},
|
||||
{
|
||||
name: "armclang",
|
||||
versionSwitch: "-v",
|
||||
versionOutputRegexp: "(Apple LLVM|clang) version (.*)- ",
|
||||
versionOutputRegexp: "(Apple LLVM|clang) version ([^\\s-]+)",
|
||||
captureGroup: 2
|
||||
},
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче