]> Cypherpunks repositories - gostls13.git/commitdiff
lib9: restore argv0 initialization code.
authorShenghou Ma <minux.ma@gmail.com>
Mon, 21 Apr 2014 04:08:39 +0000 (00:08 -0400)
committerShenghou Ma <minux.ma@gmail.com>
Mon, 21 Apr 2014 04:08:39 +0000 (00:08 -0400)
`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

src/lib9/main.c

index 6de53c10ab3e555d6cb51e750c19b90405c205e2..088b09523c24d19dd0939772e56060ce6071c3f8 100644 (file)
@@ -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;