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 a9e6a96 commit e96f24fCopy full SHA for e96f24f
src/cmd/go/internal/work/init.go
@@ -371,10 +371,10 @@ func compilerVersion() (version, error) {
371
// gcc, but does not support gcc's "-v" flag?!
372
return err
373
}
374
- gccRE := regexp.MustCompile(`gcc version (\d+)\.(\d+)`)
+ gccRE := regexp.MustCompile(`gcc .+? (\d+)\.(\d+)`)
375
match = gccRE.FindSubmatch(out)
376
} else {
377
- clangRE := regexp.MustCompile(`clang version (\d+)\.(\d+)`)
+ clangRE := regexp.MustCompile(`clang .+? (\d+)\.(\d+)`)
378
if match = clangRE.FindSubmatch(out); len(match) > 0 {
379
compiler.name = "clang"
380
0 commit comments