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