Commit 9ba153e3 authored by Shenghou Ma's avatar Shenghou Ma

lib9: restore argv0 initialization code.

`GOARCH=arm go tool 6c` used to give "<prog>: cannot use 6c with GOARCH=arm"

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/89330043
parent 0a8f5177
......@@ -52,8 +52,8 @@ main(int argc, char **argv)
// don't display the crash dialog
DWORD mode = SetErrorMode(SEM_NOGPFAULTERRORBOX);
SetErrorMode(mode | SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX);
argv0 = argv[0];
#endif
argv0 = argv[0];
p9main(argc, argv);
exits("main");
return 99;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment