diff options
author | Ayke van Laethem <[email protected]> | 2018-09-15 18:54:36 +0200 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2018-09-16 13:01:03 +0200 |
commit | 1484bb5c2c733f6aaf1fb9b66c0273a611db1d91 (patch) | |
tree | 3e7d7334b3a2099b594f20e62825cfa054bf3fbd /src/runtime/runtime.go | |
parent | c237633d34d56d95b7f5e8e00488ed5d8e54b60b (diff) | |
download | tinygo-1484bb5c2c733f6aaf1fb9b66c0273a611db1d91.tar.gz tinygo-1484bb5c2c733f6aaf1fb9b66c0273a611db1d91.zip |
all: basic support for the os package
The resulting binary is pretty big due to lacking optimizations
(probably because of interfaces), so that should be fixed.
Diffstat (limited to 'src/runtime/runtime.go')
-rw-r--r-- | src/runtime/runtime.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index 159e65faf..233c34dab 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -49,6 +49,11 @@ func GOROOT() string { return "/usr/local/go" } +//go:linkname os_runtime_args os.runtime_args +func os_runtime_args() []string { + return nil +} + // Copy size bytes from src to dst. The memory areas must not overlap. func memcpy(dst, src unsafe.Pointer, size uintptr) { for i := uintptr(0); i < size; i++ { |