On 2009/11/14 06:18:53, rsc wrote:
> Thanks for doing this!
No problem; it's fun!
> Some comments on the integration aspects.
> I haven't looked carefully at the FreeBSD code.
I think I've taken care of all these points in the latest revision. Sorry for
all the noise in this patchset; I'm still trying to figure out the codereview
extensions to some extent.
I got the stuff through gofmt, but, though it compiles, it doesn't work properly
in FreeBSD. Best guess is locking stuff is still broken and / or no working
channels. Working on getting gofmt to work next.
--dho
Some comments about make.
Try running "hg sync --local" (or just hg sync
if you want to pull changes in too) and it will
drop any files with no actual changes from the change.
http://codereview.appspot.com/152138/diff/1336/1355
File src/make.bash (right):
http://codereview.appspot.com/152138/diff/1336/1355#newcode33
src/make.bash:33: MAKE=make
This isn't really a function of $GOOS, since you
might be building nacl binaries on freebsd,
or even linux binaries.
Instead, should probably do something like
MAKE=make
if ! make --version 2>/dev/null | grep 'GNU Make' >/dev/null; then
MAKE=gmake
fi
This should probably be after quietgcc and after the check of $GOBIN.
http://codereview.appspot.com/152138/diff/1336/1355#newcode48
src/make.bash:48: rm -f $GOBIN/gomake
Move block after quietgcc check.
http://codereview.appspot.com/152138/diff/1336/1355#newcode49
src/make.bash:49: MAKE=${MAKE:-make}
(echo '#!/bin/sh'; echo 'exec '$MAKE' "$@"') >$GOBIN/gomake
I'm happy with the build fixes and they seem like a good logical
piece to split off from the FreeBSD stuff.
I suggest running "hg change" to delete the freebsd-specific
files from the list and edit the change description to say that
it's build fixes for running on BSD machines.
Then run "hg diff @152138" to double-check for freebsd-specific files,
and run hg upload. I'll apply that one and we can keep iterating on
the FreeBSD stuff in a new CL.
hg sync --local will automatically take out any files that
are no longer modified.
Issue 152138: code review 152138: Build changes to support work on the BSDs.
(Closed)
Created 15 years ago by dho
Modified 1 year, 7 months ago
Reviewers: rsc, myexamples04
Base URL:
Comments: 27