Skip to content

Commit b0dd011

Browse files
authored
Merge pull request #2 from ahojnnes/user/joschonb/preprocessor-output
Merge ejfitzgerald#11
2 parents df34eef + 94fae94 commit b0dd011

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/clangArgumentParser.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package clang
33
import (
44
"crypto/sha256"
55
"errors"
6+
"fmt"
67
"io"
78
"io/ioutil"
89
"os"
@@ -76,8 +77,9 @@ func EvaluatePreprocessedFile(buildRoot string, command *CompilerCommand) ([]byt
7677
// run the preprocessor
7778
cmd := exec.Command(command.Compiler, args...)
7879
cmd.Dir = buildRoot
79-
err = cmd.Run()
80+
stdoutStderr, err := cmd.CombinedOutput()
8081
if err != nil {
82+
fmt.Printf("%s", stdoutStderr)
8183
return nil, err
8284
}
8385

0 commit comments

Comments
 (0)