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

Issue 42890043: code review 42890043: cmd/dist: avoid use of 'go tool pack' (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by rsc
Modified:
11 years, 7 months ago
Reviewers:
iant
CC:
iant, r, golang-dev
Visibility:
Public.

Description

cmd/dist: avoid use of 'go tool pack' All packages now use the -pack option to the compiler. For a pure Go package, that's enough. For a package with additional C and assembly files, the extra archive entries can be added directly (by concatenation) instead of by invoking go tool pack. These changes make it possible to rewrite cmd/pack in Go.

Patch Set 1 #

Patch Set 2 : diff -r 4dd891cd0a26 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 4dd891cd0a26 https://code.google.com/p/go/ #

Total comments: 6

Patch Set 4 : diff -r 92e348edc9ce https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -5 lines) Patch
M src/cmd/dist/build.c View 1 2 3 7 chunks +57 lines, -5 lines 0 comments Download

Messages

Total messages: 4
rsc
Hello iant, r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 7 months ago (2013-12-16 18:08:14 UTC) #1
iant
LGTM https://codereview.appspot.com/42890043/diff/40001/src/cmd/dist/build.c File src/cmd/dist/build.c (right): https://codereview.appspot.com/42890043/diff/40001/src/cmd/dist/build.c#newcode716 src/cmd/dist/build.c:716: vadd(&link, "pack"); Why bother to add "pack" here? ...
11 years, 7 months ago (2013-12-17 00:33:58 UTC) #2
rsc
https://codereview.appspot.com/42890043/diff/40001/src/cmd/dist/build.c File src/cmd/dist/build.c (right): https://codereview.appspot.com/42890043/diff/40001/src/cmd/dist/build.c#newcode716 src/cmd/dist/build.c:716: vadd(&link, "pack"); On 2013/12/17 00:33:58, iant wrote: > Why ...
11 years, 7 months ago (2013-12-18 02:34:54 UTC) #3
rsc
11 years, 7 months ago (2013-12-18 02:44:23 UTC) #4
*** Submitted as https://code.google.com/p/go/source/detail?r=e8c8b0e2a52f ***

cmd/dist: avoid use of 'go tool pack'

All packages now use the -pack option to the compiler.
For a pure Go package, that's enough.
For a package with additional C and assembly files, the extra
archive entries can be added directly (by concatenation)
instead of by invoking go tool pack.

These changes make it possible to rewrite cmd/pack in Go.

R=iant, r
CC=golang-dev
https://codereview.appspot.com/42890043
Sign in to reply to this message.

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