genbindings/clangexec: show clang stderr

This commit is contained in:
mappu 2024-10-07 18:31:19 +13:00
parent bd15f9c10f
commit 3143374fbf

View File

@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"io"
"os"
"os/exec"
"sync"
)
@ -22,6 +23,8 @@ func clangExec(ctx context.Context, clangBin, inputHeader string, cflags []strin
return nil, fmt.Errorf("StdoutPipe: %w", err)
}
cmd.Stderr = os.Stderr
err = cmd.Start()
if err != nil {
return nil, fmt.Errorf("Start: %w", err)