Skip to content

Commit 20510e8

Browse files
committed
sys/targets: extend broken compiler error message
1 parent 19e40f4 commit 20510e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sys/targets/targets.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,8 @@ func (target *Target) lazyInit() {
10041004
cmd := exec.Command(comp, args...)
10051005
cmd.Stdin = strings.NewReader(prog)
10061006
if out, err := cmd.CombinedOutput(); err != nil {
1007-
target.BrokenCompiler = string(out)
1007+
target.BrokenCompiler = fmt.Sprintf("error running command: '%s':\ngotoutput: %s",
1008+
comp+" "+strings.Join(args, " "), out)
10081009
return
10091010
}
10101011
}

0 commit comments

Comments
 (0)