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

Issue 7331048: code review 7331048: cmd/go: pass -intgosize to SWIG (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by cookieo9
Modified:
11 years, 2 months ago
Reviewers:
CC:
golang-dev, minux1, iant
Visibility:
Public.

Description

cmd/go: pass -intgosize to SWIG swig >= 2.0.9 requires the size of int values to be passed via a command line flag. Should swig complain about the -intgosize not being supported, then alert the user to their outdated version of swig. Fixes issue 4756.

Patch Set 1 #

Patch Set 2 : diff -r d57e0c4793d4 http://code.google.com/p/go #

Patch Set 3 : diff -r 41ab0ca75ea3 http://code.google.com/p/go #

Patch Set 4 : diff -r 41ab0ca75ea3 http://code.google.com/p/go #

Total comments: 1

Patch Set 5 : diff -r 59da6744d66d http://code.google.com/p/go #

Total comments: 4

Patch Set 6 : diff -r 59da6744d66d http://code.google.com/p/go #

Patch Set 7 : diff -r 2cf1ef5d96c6 http://code.google.com/p/go #

Total comments: 1

Patch Set 8 : diff -r 2cf1ef5d96c6 http://code.google.com/p/go #

Patch Set 9 : diff -r 864c37196df8 http://code.google.com/p/go #

Total comments: 2

Patch Set 10 : diff -r 0add1de89fe4 http://code.google.com/p/go #

Total comments: 13

Patch Set 11 : diff -r 865d2efc4bf0 http://code.google.com/p/go #

Total comments: 2

Patch Set 12 : diff -r c3733f9d8642 http://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -26 lines) Patch
M src/cmd/go/build.go View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +78 lines, -26 lines 0 comments Download

Messages

Total messages: 33
cookieo9
Hello golang-dev@googlegroups.com, I'd like you to review this change to http://code.google.com/p/go
11 years, 3 months ago (2013-02-15 12:34:12 UTC) #1
minux1
r: +iant https://codereview.appspot.com/7331048/diff/7001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/7331048/diff/7001/src/cmd/go/build.go#newcode1928 src/cmd/go/build.go:1928: if runtime.GOARCH == "amd64" { we probably ...
11 years, 3 months ago (2013-02-15 18:50:23 UTC) #2
iant
On Fri, Feb 15, 2013 at 10:50 AM, <minux.ma@gmail.com> wrote: > > https://codereview.appspot.com/7331048/diff/7001/src/cmd/go/build.go#newcode1928 > src/cmd/go/build.go:1928: ...
11 years, 3 months ago (2013-02-15 19:06:37 UTC) #3
cookieo9
Hello golang-dev@googlegroups.com, minux.ma@gmail.com, iant@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-02-15 19:24:02 UTC) #4
iant
https://codereview.appspot.com/7331048/diff/14001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/7331048/diff/14001/src/cmd/go/build.go#newcode1934 src/cmd/go/build.go:1934: return "", "", errors.New("SWIG is not supported on GOARCH=" ...
11 years, 3 months ago (2013-02-15 19:39:25 UTC) #5
minux1
On Sat, Feb 16, 2013 at 3:06 AM, Ian Lance Taylor <iant@golang.org> wrote: > Unless ...
11 years, 3 months ago (2013-02-15 19:39:53 UTC) #6
iant
On Fri, Feb 15, 2013 at 11:39 AM, minux <minux.ma@gmail.com> wrote: > > On Sat, ...
11 years, 3 months ago (2013-02-15 19:42:08 UTC) #7
cookieo9
https://codereview.appspot.com/7331048/diff/14001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/7331048/diff/14001/src/cmd/go/build.go#newcode1934 src/cmd/go/build.go:1934: return "", "", errors.New("SWIG is not supported on GOARCH=" ...
11 years, 3 months ago (2013-02-15 19:46:29 UTC) #8
iant
On Fri, Feb 15, 2013 at 11:46 AM, <cookieo9@gmail.com> wrote: >> SWIG support unimplemented on ...
11 years, 3 months ago (2013-02-15 19:48:19 UTC) #9
cookieo9
On 2013/02/15 19:42:08, iant wrote: > On Fri, Feb 15, 2013 at 11:39 AM, minux ...
11 years, 3 months ago (2013-02-15 19:55:42 UTC) #10
minux1
On Sat, Feb 16, 2013 at 3:55 AM, <cookieo9@gmail.com> wrote: > Am I waiting then ...
11 years, 3 months ago (2013-02-15 20:09:27 UTC) #11
iant
On Fri, Feb 15, 2013 at 12:09 PM, minux <minux.ma@gmail.com> wrote: > > Ian, is ...
11 years, 3 months ago (2013-02-15 21:31:19 UTC) #12
minux1
On Sat, Feb 16, 2013 at 5:31 AM, Ian Lance Taylor <iant@golang.org> wrote: > On ...
11 years, 3 months ago (2013-02-15 21:43:01 UTC) #13
iant
On Fri, Feb 15, 2013 at 1:42 PM, minux <minux.ma@gmail.com> wrote: > > how about ...
11 years, 3 months ago (2013-02-15 21:46:40 UTC) #14
cookieo9
On 2013/02/15 21:46:40, iant wrote: > On Fri, Feb 15, 2013 at 1:42 PM, minux ...
11 years, 3 months ago (2013-02-15 21:58:30 UTC) #15
iant
On Fri, Feb 15, 2013 at 1:58 PM, <cookieo9@gmail.com> wrote: > > I have no ...
11 years, 3 months ago (2013-02-15 22:12:46 UTC) #16
cookieo9
On 2013/02/15 22:12:46, iant wrote: > On Fri, Feb 15, 2013 at 1:58 PM, <mailto:cookieo9@gmail.com> ...
11 years, 3 months ago (2013-02-15 23:05:10 UTC) #17
iant
This looks good to me once we fix that error message. Thanks for your patience ...
11 years, 3 months ago (2013-02-15 23:39:26 UTC) #18
cookieo9
On 2013/02/15 23:39:26, iant wrote: > This looks good to me once we fix that ...
11 years, 3 months ago (2013-02-16 00:16:34 UTC) #19
iant
On 2013/02/16 00:16:34, cookieo9 wrote: > > I solved the problem by replacing builder.print for ...
11 years, 3 months ago (2013-02-16 00:42:32 UTC) #20
cookieo9
On 2013/02/16 00:42:32, iant wrote: > On 2013/02/16 00:16:34, cookieo9 wrote: > > > > ...
11 years, 3 months ago (2013-02-16 00:52:34 UTC) #21
cookieo9
> Could I pass a suppress-output flag to gc(), so that I don't have to ...
11 years, 3 months ago (2013-02-16 01:06:34 UTC) #22
iant
Sorry for letting this sit. https://codereview.appspot.com/7331048/diff/14002/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/7331048/diff/14002/src/cmd/go/build.go#newcode1511 src/cmd/go/build.go:1511: if suppressOutput { This ...
11 years, 2 months ago (2013-02-27 01:47:57 UTC) #23
cookieo9
https://codereview.appspot.com/7331048/diff/14002/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/7331048/diff/14002/src/cmd/go/build.go#newcode1511 src/cmd/go/build.go:1511: if suppressOutput { On 2013/02/27 01:47:57, iant wrote: > ...
11 years, 2 months ago (2013-02-27 04:10:44 UTC) #24
cookieo9
Hello golang-dev@googlegroups.com, minux.ma@gmail.com, iant@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 2 months ago (2013-02-27 04:11:05 UTC) #25
cookieo9
https://codereview.appspot.com/7331048/diff/35001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/7331048/diff/35001/src/cmd/go/build.go#newcode1205 src/cmd/go/build.go:1205: func (b *builder) generateDescription(dir string, cmdargs ...interface{}) string { ...
11 years, 2 months ago (2013-02-27 04:25:22 UTC) #26
iant
Thanks for your patience on this. https://codereview.appspot.com/7331048/diff/35001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/7331048/diff/35001/src/cmd/go/build.go#newcode821 src/cmd/go/build.go:821: b.showOutput(a.p.Dir, desc, messages) ...
11 years, 2 months ago (2013-02-27 14:43:45 UTC) #27
cookieo9
https://codereview.appspot.com/7331048/diff/35001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/7331048/diff/35001/src/cmd/go/build.go#newcode821 src/cmd/go/build.go:821: b.showOutput(a.p.Dir, desc, messages) On 2013/02/27 14:43:45, iant wrote: > ...
11 years, 2 months ago (2013-02-27 15:58:17 UTC) #28
cookieo9
Hello golang-dev@googlegroups.com, minux.ma@gmail.com, iant@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 2 months ago (2013-02-27 15:59:24 UTC) #29
cookieo9
https://codereview.appspot.com/7331048/diff/42001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/7331048/diff/42001/src/cmd/go/build.go#newcode1953 src/cmd/go/build.go:1953: func (b *builder) swigIntSize(obj string) (intsize string, err error) ...
11 years, 2 months ago (2013-02-27 16:04:23 UTC) #30
cookieo9
https://codereview.appspot.com/7331048/diff/42001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/7331048/diff/42001/src/cmd/go/build.go#newcode1953 src/cmd/go/build.go:1953: func (b *builder) swigIntSize(obj string) (intsize string, err error) ...
11 years, 2 months ago (2013-02-28 02:26:05 UTC) #31
iant
LGTM Thanks for bearing with me.
11 years, 2 months ago (2013-03-02 00:48:04 UTC) #32
iant
11 years, 2 months ago (2013-03-02 00:48:26 UTC) #33
*** Submitted as https://code.google.com/p/go/source/detail?r=3d1a771ddcc5 ***

cmd/go: pass -intgosize to SWIG

swig >= 2.0.9 requires the size of int values to be passed via a command line
flag. Should swig complain about the -intgosize not being supported, then alert
the user to their outdated version of swig.

Fixes issue 4756.

R=golang-dev, minux.ma, iant
CC=golang-dev
https://codereview.appspot.com/7331048

Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

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