aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder
diff options
context:
space:
mode:
Diffstat (limited to 'builder')
-rw-r--r--builder/cc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/builder/cc.go b/builder/cc.go
index 7f0dad28a..3aac75586 100644
--- a/builder/cc.go
+++ b/builder/cc.go
@@ -155,6 +155,10 @@ func compileAndCacheCFile(abspath, tmpdir string, cflags []string, printCommands
// Write dependencies file.
f, err := ioutil.TempFile(filepath.Dir(depfileCachePath), depfileName)
+ if err != nil {
+ return "", err
+ }
+
buf, err = json.MarshalIndent(dependencySlice, "", "\t")
if err != nil {
panic(err) // shouldn't happen