mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-10 22:49:30 +00:00
runtime,os: add os.Executable() for Darwin
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
//go:build darwin
|
||||
|
||||
package os
|
||||
|
||||
// via runtime because we need argc/argv ptrs
|
||||
func runtime_executable_path() string
|
||||
|
||||
func Executable() (string, error) {
|
||||
return runtime_executable_path(), nil
|
||||
}
|
||||
Reference in New Issue
Block a user