You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
builder: Fix parsing of external ld.lld error messages
If `ld.lld` is a version-specific binary (e.g., `ld.lld-18`), then its
error messages include the version. The parsing previously incorrectly
assumed it would be unversioned.
ifmatches:=regexp.MustCompile(`^ld.lld: error: section '(.*?)' will not fit in region '(.*?)': overflowed by ([0-9]+) bytes$`).FindStringSubmatch(message); matches!=nil {
138
-
region:=matches[2]
139
-
n, err:=strconv.ParseUint(matches[3], 10, 64)
137
+
ifmatches:=regexp.MustCompile(`^ld.lld(-[0-9]+)?: error: section '(.*?)' will not fit in region '(.*?)': overflowed by ([0-9]+) bytes$`).FindStringSubmatch(message); matches!=nil {
138
+
region:=matches[3]
139
+
n, err:=strconv.ParseUint(matches[4], 10, 64)
140
140
iferr!=nil {
141
141
// Should not happen at all (unless it overflows an uint64 for some reason).
0 commit comments