Skip to content

Commit

Permalink
fixes building with newer versions of MSYS
Browse files Browse the repository at this point in the history
fixes cretz#34
  • Loading branch information
mibmo committed Jun 17, 2022
1 parent 02b1715 commit 8f12b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func validateEnvironment() error {
// Confirm it is MinGW 64
if byts, err := exec.Command("uname", "-a").CombinedOutput(); err != nil {
return fmt.Errorf("This has to be run in a MSYS or MinGW shell, uname failed: %v", err)
} else if !bytes.HasPrefix(byts, []byte("MINGW64")) && !bytes.HasPrefix(byts, []byte("MSYS2")) {
} else if !bytes.HasPrefix(byts, []byte("MINGW64")) && !bytes.HasPrefix(byts, []byte("MSYS2")) && !bytes.HasPrefix(byts, ["MSYS_NT"]) {
return fmt.Errorf("This has to be run in a MSYS or MinGW64 shell, uname output: %v", string(byts))
}
case "linux":
Expand Down

0 comments on commit 8f12b70

Please sign in to comment.