Please sign in to comment.
build, compiler/natives/src/os: Remove syscalling os.Executable imple…
…mentation. Replace it with a not-implemented-erroring one. This fixes the issue #583 where on darwin a call to os.Getwd is made, which makes syscalls, and causes a warning to be printed to console: warning: system calls not available, see https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md os.Executable is documented to be unsupported on nacl: // Executable is not supported on nacl or OpenBSD (unless procfs is // mounted.) GOARCH=js is similar to nacl in many ways, so it's pretty expected os.Executable wouldn't be supported here either. Use https://github.com/golang/go/blob/990124da2a6ca5a54b38733b51018e2f8758cfae/src/os/executable_procfs.go#L21 as template for error message. Fixes #583.
- Loading branch information...
Showing with 21 additions and 0 deletions.