mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
go.tools/playground/socket: fix nacl/arm command line.
nacl_helper_bootstrap_arm doesn't consult $PATH for sel_ldr_arm. LGTM=adg R=adg, dan.kortschak CC=golang-codereviews https://golang.org/cl/112010044
This commit is contained in:
parent
4329a10ae7
commit
daba707591
@ -356,7 +356,11 @@ func (p *process) naclCmd(bin string) (*exec.Cmd, error) {
|
|||||||
args = []string{"sel_ldr_x86_32"}
|
args = []string{"sel_ldr_x86_32"}
|
||||||
case "arm":
|
case "arm":
|
||||||
env = append(env, "NACLENV_GOARCH=arm")
|
env = append(env, "NACLENV_GOARCH=arm")
|
||||||
args = []string{"nacl_helper_bootstrap_arm", "sel_ldr_arm", "--reserved_at_zero=0xXXXXXXXXXXXXXXXX"}
|
selLdr, err := exec.LookPath("sel_ldr_arm")
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
args = []string{"nacl_helper_bootstrap_arm", selLdr, "--reserved_at_zero=0xXXXXXXXXXXXXXXXX"}
|
||||||
default:
|
default:
|
||||||
return nil, errors.New("native client does not support GOARCH=" + runtime.GOARCH)
|
return nil, errors.New("native client does not support GOARCH=" + runtime.GOARCH)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user