Skip to content

Commit

Permalink
builder: add check for error on creating needed directory as suggeste…
Browse files Browse the repository at this point in the history
…d by @b0ch3nski

Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Mar 26, 2024
1 parent 7c54652 commit a5ceb79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builder/wasmbuiltins.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5ceb79

Please sign in to comment.