mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: revert 6974:1f3c3696babb
I missed that environment is used during runtime setup, well before go init() functions run. Implemented os-dependent runtime.goenvs functions to allow for different unix, plan9 and windows versions of environment discovery. R=rsc, paulzhol CC=golang-dev https://golang.org/cl/3787046
This commit is contained in:
parent
217693e93c
commit
a41d85498e
11 changed files with 121 additions and 20 deletions
|
|
@ -263,6 +263,12 @@ runtime·osinit(void)
|
|||
{
|
||||
}
|
||||
|
||||
void
|
||||
runtime·goenvs(void)
|
||||
{
|
||||
runtime·goenvs_unix();
|
||||
}
|
||||
|
||||
// Called to initialize a new m (including the bootstrap m).
|
||||
void
|
||||
runtime·minit(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue