![]() Go 1.12 switched to using libSystem.dylib for system calls, because Apple recommends against doing direct system calls that Go 1.11 and earlier did. For more information, see: https://github.com/golang/go/issues/17490 https://developer.apple.com/library/archive/qa/qa1118/_index.html While the old syscall package was relatively easy to support in TinyGo (just implement syscall.Syscall*), this got a whole lot harder with Go 1.12 as all syscalls now go through CGo magic to call the underlying libSystem functions. Therefore, this commit overrides the stdlib syscall package with a custom package that performs calls with libc (libSystem). This may be useful not just for darwin but for other platforms as well that do not place the stable ABI at the syscall boundary like Linux but at the libc boundary. Only a very minimal part of the syscall package has been implemented, to get the tests to pass. More calls can easily be added in the future. |
||
---|---|---|
.. | ||
asserts.go | ||
calls.go | ||
channel.go | ||
compiler.go | ||
defer.go | ||
errors.go | ||
goroutine-lowering.go | ||
interface-lowering.go | ||
interface.go | ||
llvm.go | ||
map.go | ||
optimizer.go | ||
reflect.go | ||
sizes.go | ||
syscall.go |