Browse Source

修复编译脚本

pull/32/head
Sydonian 2 years ago
parent
commit
edca7600a3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      magefiles/common.go

+ 2
- 2
magefiles/common.go View File

@@ -77,11 +77,11 @@ func makeGoBuildArgs() (goBuildArgs, error) {

if Global.OS == "win" {
args.OutputExt = ".exe"
args.Env["CGO_ENABLE"] = "0"
args.Env["CGO_ENABLED"] = "0"
args.Env["GOOS"] = "windows"
} else if Global.OS == "linux" {
args.OutputExt = ""
args.Env["CGO_ENABLE"] = "0"
args.Env["CGO_ENABLED"] = "0"
args.Env["GOOS"] = "linux"

} else if Global.OS != "" {


Loading…
Cancel
Save