Skip to content

Commit

Permalink
U: energy cli
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangli10 committed Dec 18, 2024
1 parent 7e4ed83 commit d1bd2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/internal/build/build_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func build(c *command.Config, proj *project.Project) (err error) {
os.Setenv("GOARCH", string(c.Build.ARCH))
}
if c.Build.OS != "" || c.Build.ARCH != "" {
if tools.Equals(c.Build.OS.Value(), runtime.GOOS) || !tools.Equals(c.Build.ARCH.Value(), runtime.GOARCH) {
if !tools.Equals(c.Build.OS.Value(), runtime.GOOS) || !tools.Equals(c.Build.ARCH.Value(), runtime.GOARCH) {
os.Setenv("CGO_ENABLED", "1")
}
}
Expand Down

0 comments on commit d1bd2a0

Please sign in to comment.