mirror of
https://github.com/golang/go.git
synced 2025-05-27 18:31:35 +00:00
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
This commit is contained in:
parent
0a8f5177f6
commit
9ba153e3e0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user