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

Issue 4859043: code review 4859043: build: allow builds without cgo (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by rsc
Modified:
13 years, 8 months ago
Reviewers:
dsymonds
CC:
bradfitz, fhs, golang-dev
Visibility:
Public.

Description

build: allow builds without cgo

Patch Set 1 #

Patch Set 2 : diff -r 1edd4df99360 https://go.googlecode.com/hg #

Patch Set 3 : diff -r 1cf966ee02cf https://go.googlecode.com/hg #

Patch Set 4 : diff -r 1cf966ee02cf https://go.googlecode.com/hg #

Total comments: 5

Patch Set 5 : diff -r f5e8f93911bb https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r f5e8f93911bb https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -41 lines) Patch
M src/Make.inc View 1 2 2 chunks +21 lines, -5 lines 0 comments Download
M src/pkg/net/Makefile View 1 2 4 chunks +18 lines, -11 lines 0 comments Download
M src/pkg/os/user/Makefile View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/os/user/lookup_unix.go View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/os/user/user.go View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/os/user/user_test.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/cgo/Makefile View 1 2 2 chunks +2 lines, -19 lines 0 comments Download
M src/run.bash View 1 2 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8
rsc
Hello golang-dev (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 8 months ago (2011-08-10 22:58:23 UTC) #1
bradfitz
LGTM Nice! And the Makefiles are simpler now too. On Wed, Aug 10, 2011 at ...
13 years, 8 months ago (2011-08-10 23:01:13 UTC) #2
dsymonds
Why use += in src/pkg/net/Makefile?
13 years, 8 months ago (2011-08-10 23:18:04 UTC) #3
fhs
http://codereview.appspot.com/4859043/diff/6001/src/pkg/net/Makefile File src/pkg/net/Makefile (right): http://codereview.appspot.com/4859043/diff/6001/src/pkg/net/Makefile#newcode98 src/pkg/net/Makefile:98: cgo_stub.go\ Maybe you missed this one?
13 years, 8 months ago (2011-08-10 23:26:57 UTC) #4
dsymonds
http://codereview.appspot.com/4859043/diff/6001/src/pkg/net/Makefile File src/pkg/net/Makefile (right): http://codereview.appspot.com/4859043/diff/6001/src/pkg/net/Makefile#newcode44 src/pkg/net/Makefile:44: GOFILES_freebsd+=cgo_stub.go sorry, to clarify, you assign to CGOFILES_freebsd in ...
13 years, 8 months ago (2011-08-10 23:51:46 UTC) #5
rsc
http://codereview.appspot.com/4859043/diff/6001/src/pkg/net/Makefile File src/pkg/net/Makefile (right): http://codereview.appspot.com/4859043/diff/6001/src/pkg/net/Makefile#newcode44 src/pkg/net/Makefile:44: GOFILES_freebsd+=cgo_stub.go On 2011/08/10 23:51:46, dsymonds wrote: > sorry, to ...
13 years, 8 months ago (2011-08-11 01:34:33 UTC) #6
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=cb26571a1d3f *** build: allow builds without cgo R=bradfitz, dsymonds, fshahriar CC=golang-dev http://codereview.appspot.com/4859043
13 years, 8 months ago (2011-08-11 01:36:53 UTC) #7
dsymonds
13 years, 8 months ago (2011-08-11 01:37:08 UTC) #8
LGTM

http://codereview.appspot.com/4859043/diff/6001/src/pkg/net/Makefile
File src/pkg/net/Makefile (right):

http://codereview.appspot.com/4859043/diff/6001/src/pkg/net/Makefile#newcode44
src/pkg/net/Makefile:44: GOFILES_freebsd+=cgo_stub.go
On 2011/08/11 01:34:33, rsc wrote:
> On 2011/08/10 23:51:46, dsymonds wrote:
> > sorry, to clarify, you assign to CGOFILES_freebsd in one branch of the ifeq,
> but
> > append to it in the other branch. Same goes for the other OSes.
> 
> They are different variables.  One needs to be set; the other needs a +=.

Oh, I missed that missing "C".
Sign in to reply to this message.

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