Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
eandre committed Aug 11, 2023
1 parent b9d02b1 commit ab795bd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion builder/encore-build.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ func (b *Builder) Build() error {
"GOROOT_FINAL=/encore",
"GOARCH="+b.GOARCH,
"GOOS="+b.GOOS,
"GOEXPERIMENT=cacheprog",
)

// Enable cacheprog experiment on all platforms except Windows;
// it's seemingly not supported there: we get weird build errors.
if b.GOOS != "windows" {
cmd.Env = append(cmd.Env, "GOEXPERIMENT=cacheprog")
}

return cmd.Run()
}

Expand Down

0 comments on commit ab795bd

Please sign in to comment.