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

Delta Between Two Patch Sets: src/cmd/dist/build.c

Issue 10368043: code review 10368043: runtime: do not generate code during runtime in windows... (Closed)
Left Patch Set: diff -r 7961b83d1d37 https://go.googlecode.com/hg/ Created 11 years, 10 months ago
Right Patch Set: diff -r 4f94a7de7c59 https://go.googlecode.com/hg/ Created 11 years, 9 months 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:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/dist/a.h ('k') | src/cmd/dist/buildruntime.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 "../ld/*", 521 "../ld/*",
522 "enam.c", 522 "enam.c",
523 }}, 523 }},
524 {"cmd/", { 524 {"cmd/", {
525 "$GOROOT/pkg/obj/$GOOS_$GOARCH/libmach.a", 525 "$GOROOT/pkg/obj/$GOOS_$GOARCH/libmach.a",
526 "$GOROOT/pkg/obj/$GOOS_$GOARCH/libbio.a", 526 "$GOROOT/pkg/obj/$GOOS_$GOARCH/libbio.a",
527 "$GOROOT/pkg/obj/$GOOS_$GOARCH/lib9.a", 527 "$GOROOT/pkg/obj/$GOOS_$GOARCH/lib9.a",
528 }}, 528 }},
529 {"pkg/runtime", { 529 {"pkg/runtime", {
530 "zasm_$GOOS_$GOARCH.h", 530 "zasm_$GOOS_$GOARCH.h",
531 "zsys_$GOOS_$GOARCH.s",
531 "zgoarch_$GOARCH.go", 532 "zgoarch_$GOARCH.go",
532 "zgoos_$GOOS.go", 533 "zgoos_$GOOS.go",
533 "zruntime_defs_$GOOS_$GOARCH.go", 534 "zruntime_defs_$GOOS_$GOARCH.go",
534 "zversion.go", 535 "zversion.go",
535 }}, 536 }},
536 }; 537 };
537 538
538 // depsuffix records the allowed suffixes for source files. 539 // depsuffix records the allowed suffixes for source files.
539 char *depsuffix[] = { 540 char *depsuffix[] = {
540 ".c", 541 ".c",
541 ".h", 542 ".h",
542 ".s", 543 ".s",
543 ".go", 544 ".go",
544 ".goc", 545 ".goc",
545 }; 546 };
546 547
547 // gentab records how to generate some trivial files. 548 // gentab records how to generate some trivial files.
548 static struct { 549 static struct {
549 char *nameprefix; 550 char *nameprefix;
550 void (*gen)(char*, char*); 551 void (*gen)(char*, char*);
551 } gentab[] = { 552 } gentab[] = {
552 {"opnames.h", gcopnames}, 553 {"opnames.h", gcopnames},
553 {"enam.c", mkenam}, 554 {"enam.c", mkenam},
554 {"zasm_", mkzasm}, 555 {"zasm_", mkzasm},
556 {"zsys_", mkzsys},
555 {"zgoarch_", mkzgoarch}, 557 {"zgoarch_", mkzgoarch},
556 {"zgoos_", mkzgoos}, 558 {"zgoos_", mkzgoos},
557 {"zruntime_defs_", mkzruntimedefs}, 559 {"zruntime_defs_", mkzruntimedefs},
558 {"zversion.go", mkzversion}, 560 {"zversion.go", mkzversion},
559 }; 561 };
560 562
561 // install installs the library, package, or binary associated with dir, 563 // install installs the library, package, or binary associated with dir,
562 // which is relative to $GOROOT/src. 564 // which is relative to $GOROOT/src.
563 static void 565 static void
564 install(char *dir) 566 install(char *dir)
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 break; 1677 break;
1676 default: 1678 default:
1677 usage(); 1679 usage();
1678 }ARGEND 1680 }ARGEND
1679 1681
1680 if(argc > 0) 1682 if(argc > 0)
1681 usage(); 1683 usage();
1682 1684
1683 xprintf("%s\n", goversion); 1685 xprintf("%s\n", goversion);
1684 } 1686 }
LEFTRIGHT

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