aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--builder/wasmbuiltins.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/builder/wasmbuiltins.go b/builder/wasmbuiltins.go
index 06366bf95..bcd92f3ec 100644
--- a/builder/wasmbuiltins.go
+++ b/builder/wasmbuiltins.go
@@ -10,7 +10,9 @@ import (
var WasmBuiltins = Library{
name: "wasmbuiltins",
makeHeaders: func(target, includeDir string) error {
- os.Mkdir(includeDir+"/bits", 0o777)
+ if err := os.Mkdir(includeDir+"/bits", 0o777); err != nil {
+ return err
+ }
f, err := os.Create(includeDir + "/bits/alltypes.h")
if err != nil {
return err