generate.bash 552 B

123456789101112131415
  1. #!/bin/bash
  2. # Copyright 2019 The Go Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style
  4. # license that can be found in the LICENSE file.
  5. set -e
  6. # For successful zsyscall_windows.go generation on non-WSL env, this should
  7. # run before mkerrors.bash.
  8. echo "# Generating zsyscall_windows.go ..."
  9. go run $(go env GOROOT)/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go
  10. echo "# Generating zerrors_windows.go ..."
  11. ./mkerrors.bash zerrors_windows.go