mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +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
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build !linux || baremetal
|
||||
//go:build (!linux && !darwin) || baremetal
|
||||
|
||||
package os
|
||||
|
||||
|
||||
Reference in New Issue
Block a user