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

Issue 13394045: code review 13394045: cmd/go: if there are C++ sources, use g++ as default ex... (Closed)

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

Description

cmd/go: if there are C++ sources, use g++ as default external linker This will bring in the C++ standard library without requiring any special #cgo LDFLAGS options. When using gccgo, just add -lstdc++ to link line; this should do no harm if it is not needed. No tests, since we don't want to assume a C++ compiler. Update issue 5629

Patch Set 1 #

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

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

Total comments: 2

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

Patch Set 5 : diff -r 6d6901174a41 https://code.google.com/p/go #

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

Messages

Total messages: 6
iant
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 7 months ago (2013-09-04 15:16:20 UTC) #1
iant
Ping. Basic idea is pretty simple. Note that patch has changed since initial e-mail to ...
10 years, 7 months ago (2013-09-06 22:50:43 UTC) #2
minux1
https://codereview.appspot.com/13394045/diff/7001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/13394045/diff/7001/src/cmd/go/build.go#newcode1575 src/cmd/go/build.go:1575: // specified the -extld or -extldflags option, then if ...
10 years, 7 months ago (2013-09-09 19:12:47 UTC) #3
iant
https://codereview.appspot.com/13394045/diff/7001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/13394045/diff/7001/src/cmd/go/build.go#newcode1575 src/cmd/go/build.go:1575: // specified the -extld or -extldflags option, then On ...
10 years, 7 months ago (2013-09-09 19:40:22 UTC) #4
rsc
LGTM
10 years, 7 months ago (2013-09-09 19:45:44 UTC) #5
iant
10 years, 7 months ago (2013-09-09 19:50:54 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=ca80c16cf523 ***

cmd/go: if there are C++ sources, use g++ as default external linker

This will bring in the C++ standard library without requiring
any special #cgo LDFLAGS options.

When using gccgo, just add -lstdc++ to link line; this should
do no harm if it is not needed.

No tests, since we don't want to assume a C++ compiler.

Update issue 5629

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://codereview.appspot.com/13394045
Sign in to reply to this message.

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