Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(20)

Side by Side Diff: src/cmd/dist/build.c

Issue 68150047: all: merge NaCl branch (part 1)
Patch Set: diff -r 737d232b573b ssh://hg@bitbucket.org/davecheney/go.nacl Created 11 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/cmd/8g/ggen.c ('k') | src/cmd/gc/align.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Go Authors. All rights reserved. 1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include "a.h" 5 #include "a.h"
6 #include "arg.h" 6 #include "arg.h"
7 7
8 /* 8 /*
9 * Initialization for any invocation. 9 * Initialization for any invocation.
10 */ 10 */
(...skipping 20 matching lines...) Expand all
31 char *defaultcctarget; 31 char *defaultcctarget;
32 bool rebuildall; 32 bool rebuildall;
33 bool defaultclang; 33 bool defaultclang;
34 34
35 static bool shouldbuild(char*, char*); 35 static bool shouldbuild(char*, char*);
36 static void copy(char*, char*, int); 36 static void copy(char*, char*, int);
37 static void dopack(char*, char*, char**, int); 37 static void dopack(char*, char*, char**, int);
38 static char *findgoversion(void); 38 static char *findgoversion(void);
39 39
40 // The known architecture letters. 40 // The known architecture letters.
41 static char *gochars = "568"; 41 static char *gochars = "5668";
42 42
43 // The known architectures. 43 // The known architectures.
44 static char *okgoarch[] = { 44 static char *okgoarch[] = {
45 // same order as gochars 45 // same order as gochars
46 "arm", 46 "arm",
47 "amd64", 47 "amd64",
48 "amd64p32",
48 "386", 49 "386",
49 }; 50 };
50 51
51 // The known operating systems. 52 // The known operating systems.
52 static char *okgoos[] = { 53 static char *okgoos[] = {
53 "darwin", 54 "darwin",
54 "dragonfly", 55 "dragonfly",
55 "linux", 56 "linux",
56 "solaris", 57 "solaris",
57 "freebsd", 58 "freebsd",
59 "nacl",
58 "netbsd", 60 "netbsd",
59 "openbsd", 61 "openbsd",
60 "plan9", 62 "plan9",
61 "windows", 63 "windows",
62 }; 64 };
63 65
64 static void rmworkdir(void); 66 static void rmworkdir(void);
65 67
66 // find reports the first index of p in l[0:n], or else -1. 68 // find reports the first index of p in l[0:n], or else -1.
67 int 69 int
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 break; 1786 break;
1785 default: 1787 default:
1786 usage(); 1788 usage();
1787 }ARGEND 1789 }ARGEND
1788 1790
1789 if(argc > 0) 1791 if(argc > 0)
1790 usage(); 1792 usage();
1791 1793
1792 xprintf("%s\n", goversion); 1794 xprintf("%s\n", goversion);
1793 } 1795 }
OLDNEW
« no previous file with comments | « src/cmd/8g/ggen.c ('k') | src/cmd/gc/align.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b