LEFT | RIGHT |
(no file at all) | |
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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 vadd(&compile, "-w"); | 985 vadd(&compile, "-w"); |
986 } | 986 } |
987 vadd(&compile, "-I"); | 987 vadd(&compile, "-I"); |
988 vadd(&compile, workdir); | 988 vadd(&compile, workdir); |
989 vadd(&compile, "-I"); | 989 vadd(&compile, "-I"); |
990 vadd(&compile, bprintf(&b, "%s/pkg/%s_%s", goroot, goos,
goarch)); | 990 vadd(&compile, bprintf(&b, "%s/pkg/%s_%s", goroot, goos,
goarch)); |
991 vadd(&compile, "-D"); | 991 vadd(&compile, "-D"); |
992 vadd(&compile, bprintf(&b, "GOOS_%s", goos)); | 992 vadd(&compile, bprintf(&b, "GOOS_%s", goos)); |
993 vadd(&compile, "-D"); | 993 vadd(&compile, "-D"); |
994 vadd(&compile, bprintf(&b, "GOARCH_%s", goarch)); | 994 vadd(&compile, bprintf(&b, "GOARCH_%s", goarch)); |
| 995 vadd(&compile, "-D"); |
| 996 vadd(&compile, bprintf(&b, "GOOS_GOARCH_%s_%s", goos, go
arch)); |
995 } | 997 } |
996 | 998 |
997 bpathf(&b, "%s/%s", workdir, lastelem(files.p[i])); | 999 bpathf(&b, "%s/%s", workdir, lastelem(files.p[i])); |
998 doclean = 1; | 1000 doclean = 1; |
999 if(!isgo && streq(gohostos, "darwin")) { | 1001 if(!isgo && streq(gohostos, "darwin")) { |
1000 // To debug C programs on OS X, it is not enough to say
-ggdb | 1002 // To debug C programs on OS X, it is not enough to say
-ggdb |
1001 // on the command line. You have to leave the object fi
les | 1003 // on the command line. You have to leave the object fi
les |
1002 // lying around too. Leave them in pkg/obj/, which does
not | 1004 // lying around too. Leave them in pkg/obj/, which does
not |
1003 // get removed when this tool exits. | 1005 // get removed when this tool exits. |
1004 bpathf(&b1, "%s/pkg/obj/%s", goroot, dir); | 1006 bpathf(&b1, "%s/pkg/obj/%s", goroot, dir); |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 "pkg/strconv", | 1260 "pkg/strconv", |
1259 "pkg/bufio", | 1261 "pkg/bufio", |
1260 "pkg/sort", | 1262 "pkg/sort", |
1261 "pkg/container/heap", | 1263 "pkg/container/heap", |
1262 "pkg/encoding/base64", | 1264 "pkg/encoding/base64", |
1263 "pkg/syscall", | 1265 "pkg/syscall", |
1264 "pkg/time", | 1266 "pkg/time", |
1265 "pkg/os", | 1267 "pkg/os", |
1266 "pkg/reflect", | 1268 "pkg/reflect", |
1267 "pkg/fmt", | 1269 "pkg/fmt", |
| 1270 "pkg/encoding", |
1268 "pkg/encoding/json", | 1271 "pkg/encoding/json", |
1269 "pkg/flag", | 1272 "pkg/flag", |
1270 "pkg/path/filepath", | 1273 "pkg/path/filepath", |
1271 "pkg/path", | 1274 "pkg/path", |
1272 "pkg/io/ioutil", | 1275 "pkg/io/ioutil", |
1273 "pkg/log", | 1276 "pkg/log", |
1274 "pkg/regexp/syntax", | 1277 "pkg/regexp/syntax", |
1275 "pkg/regexp", | 1278 "pkg/regexp", |
1276 "pkg/go/token", | 1279 "pkg/go/token", |
1277 "pkg/go/scanner", | 1280 "pkg/go/scanner", |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 "cmd/nm", | 1313 "cmd/nm", |
1311 "cmd/objdump", | 1314 "cmd/objdump", |
1312 "cmd/pack", | 1315 "cmd/pack", |
1313 "cmd/prof", | 1316 "cmd/prof", |
1314 "lib9", | 1317 "lib9", |
1315 "libbio", | 1318 "libbio", |
1316 "libmach", | 1319 "libmach", |
1317 "pkg/bufio", | 1320 "pkg/bufio", |
1318 "pkg/bytes", | 1321 "pkg/bytes", |
1319 "pkg/container/heap", | 1322 "pkg/container/heap", |
| 1323 "pkg/encoding", |
1320 "pkg/encoding/base64", | 1324 "pkg/encoding/base64", |
1321 "pkg/encoding/json", | 1325 "pkg/encoding/json", |
1322 "pkg/errors", | 1326 "pkg/errors", |
1323 "pkg/flag", | 1327 "pkg/flag", |
1324 "pkg/fmt", | 1328 "pkg/fmt", |
1325 "pkg/go/ast", | 1329 "pkg/go/ast", |
1326 "pkg/go/build", | 1330 "pkg/go/build", |
1327 "pkg/go/doc", | 1331 "pkg/go/doc", |
1328 "pkg/go/parser", | 1332 "pkg/go/parser", |
1329 "pkg/go/scanner", | 1333 "pkg/go/scanner", |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1707 break; | 1711 break; |
1708 default: | 1712 default: |
1709 usage(); | 1713 usage(); |
1710 }ARGEND | 1714 }ARGEND |
1711 | 1715 |
1712 if(argc > 0) | 1716 if(argc > 0) |
1713 usage(); | 1717 usage(); |
1714 | 1718 |
1715 xprintf("%s\n", goversion); | 1719 xprintf("%s\n", goversion); |
1716 } | 1720 } |
LEFT | RIGHT |