github.com/dolfly/pty@v1.2.1/cmd_windows.s (about) 1 // disable default -complete option to `go tool compile` on windows 2 3 // We are using `go:linkname` to support golang os/exec.Cmd for extended 4 // windows process creation (startupInfoEx), and that is not supported by its 5 // standard library implementation. 6 7 // By default, the go compiler will require all functions in *.go files 8 // with body defined, if that's not the case, we have to enable CGO to 9 // enable symbol lookup. One solution to disable that compile time check 10 // is to add some go assembly file to your project. 11 12 // For this project, we don't use CGO at all, and should not require users 13 // to set `CGO_ENABLED=1` when compiling their projects using this package. 14 15 // By adding this empty assembly file, the go compiler will enable symbol 16 // lookup, so that we can have functions with no body defined in *.go files.