aboutsummaryrefslogtreecommitdiff
path: root/src/os/executable_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/executable_darwin.go')
-rw-r--r--src/os/executable_darwin.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os/executable_darwin.go b/src/os/executable_darwin.go
index dae9f4ee18..2bb50ab3fe 100644
--- a/src/os/executable_darwin.go
+++ b/src/os/executable_darwin.go
@@ -4,8 +4,12 @@
package os
-import "errors"
+import (
+ "errors"
+ _ "unsafe" // for linkname
+)
+//go:linkname executablePath
var executablePath string // set by ../runtime/os_darwin.go
var initCwd, initCwdErr = Getwd()