runtime,os: add os.Executable() for Darwin

This commit is contained in:
Damian Gryski
2025-04-30 10:31:15 -07:00
committed by Ron Evans
parent 72b19555dc
commit 5428bfd270
3 changed files with 46 additions and 1 deletions
+10
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
//go:build !linux || baremetal
//go:build (!linux && !darwin) || baremetal
package os