OLD | NEW |
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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 vfree(&missing); | 1039 vfree(&missing); |
1040 vfree(&clean); | 1040 vfree(&clean); |
1041 vfree(&lib); | 1041 vfree(&lib); |
1042 vfree(&extra); | 1042 vfree(&extra); |
1043 } | 1043 } |
1044 | 1044 |
1045 // matchfield reports whether the field matches this build. | 1045 // matchfield reports whether the field matches this build. |
1046 static bool | 1046 static bool |
1047 matchfield(char *f) | 1047 matchfield(char *f) |
1048 { | 1048 { |
1049 » return streq(f, goos) || streq(f, goarch) || streq(f, "cmd_go_bootstrap"
); | 1049 » return streq(f, goos) || streq(f, goarch) || streq(f, "cmd_go_bootstrap"
) || streq(f, "go1.1"); |
1050 } | 1050 } |
1051 | 1051 |
1052 // shouldbuild reports whether we should build this file. | 1052 // shouldbuild reports whether we should build this file. |
1053 // It applies the same rules that are used with context tags | 1053 // It applies the same rules that are used with context tags |
1054 // in package go/build, except that the GOOS and GOARCH | 1054 // in package go/build, except that the GOOS and GOARCH |
1055 // can appear anywhere in the file name, not just after _. | 1055 // can appear anywhere in the file name, not just after _. |
1056 // In particular, they can be the entire file name (like windows.c). | 1056 // In particular, they can be the entire file name (like windows.c). |
1057 // We also allow the special tag cmd_go_bootstrap. | 1057 // We also allow the special tag cmd_go_bootstrap. |
1058 // See ../go/bootstrap.go and package go/build. | 1058 // See ../go/bootstrap.go and package go/build. |
1059 static bool | 1059 static bool |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1639 break; | 1639 break; |
1640 default: | 1640 default: |
1641 usage(); | 1641 usage(); |
1642 }ARGEND | 1642 }ARGEND |
1643 | 1643 |
1644 if(argc > 0) | 1644 if(argc > 0) |
1645 usage(); | 1645 usage(); |
1646 | 1646 |
1647 xprintf("%s\n", goversion); | 1647 xprintf("%s\n", goversion); |
1648 } | 1648 } |
OLD | NEW |