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

Issue 4121048: code review 4121048: cgo: os/arch dependent #cgo directives (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by niemeyer
Modified:
14 years, 2 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

cgo: os/arch dependent #cgo directives This enables #cgo directives to contain a os/arch specification which restricts the definition of the given option to matching systems. For example: #cgo amd64 CFLAGS: -DAMD64=1 #cgo linux CFLAGS: -DLINUX=1 #cgo linux/amd64 CFLAGS: -DLINUX_ON_AMD64=1

Patch Set 1 #

Patch Set 2 : code review 4121048: cgo: os/arch dependent #cgo directives #

Patch Set 3 : code review 4121048: cgo: os/arch dependent #cgo directives #

Patch Set 4 : code review 4121048: cgo: os/arch dependent #cgo directives #

Patch Set 5 : code review 4121048: cgo: os/arch dependent #cgo directives #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -3 lines) Patch
M src/cmd/cgo/doc.go View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M src/cmd/cgo/gcc.go View 3 chunks +23 lines, -2 lines 2 comments Download

Messages

Total messages: 5
niemeyer
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 2 months ago (2011-02-01 22:07:29 UTC) #1
rsc
LGTM http://codereview.appspot.com/4121048/diff/1002/src/cmd/cgo/gcc.go File src/cmd/cgo/gcc.go (right): http://codereview.appspot.com/4121048/diff/1002/src/cmd/cgo/gcc.go#newcode85 src/cmd/cgo/gcc.go:85: var k string k := kf[len(kf)-1] no?
14 years, 2 months ago (2011-02-03 04:22:24 UTC) #2
niemeyer
http://codereview.appspot.com/4121048/diff/1002/src/cmd/cgo/gcc.go File src/cmd/cgo/gcc.go (right): http://codereview.appspot.com/4121048/diff/1002/src/cmd/cgo/gcc.go#newcode85 src/cmd/cgo/gcc.go:85: var k string > k := kf[len(kf)-1] no? The ...
14 years, 2 months ago (2011-02-03 11:59:32 UTC) #3
rsc
LGTM Missed the use of strings.Fields.
14 years, 2 months ago (2011-02-03 15:28:39 UTC) #4
rsc
14 years, 2 months ago (2011-02-03 18:51:49 UTC) #5
*** Submitted as e0e30925d60d ***

cgo: os/arch dependent #cgo directives

This enables #cgo directives to contain a os/arch
specification which restricts the definition of
the given option to matching systems.

For example:

#cgo amd64 CFLAGS: -DAMD64=1
#cgo linux CFLAGS: -DLINUX=1
#cgo linux/amd64 CFLAGS: -DLINUX_ON_AMD64=1

R=rsc
CC=golang-dev
http://codereview.appspot.com/4121048

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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