1
0
mirror of https://github.com/golang/go synced 2024-11-18 17:14:45 -07: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:
Shenghou Ma 2014-07-10 00:46:43 -04:00
parent 4329a10ae7
commit daba707591

View File

@ -356,7 +356,11 @@ func (p *process) naclCmd(bin string) (*exec.Cmd, error) {
args = []string{"sel_ldr_x86_32"}
case "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:
return nil, errors.New("native client does not support GOARCH=" + runtime.GOARCH)
}