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

Issue 206077: code review 206077: Invoke an ANSI C pre-processor as "cpp", not "/bin/cpp" (Closed)

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

Description

Invoke an ANSI C pre-processor as "cpp", not "/bin/cpp" The compilers' -p option currently assumes that /bin/cpp exists. This is not the case on all platforms including OS X. As the compilers invoke cpp via lib9/exec.c:exec() which is implemented with execvp, just specify "cpp" and not "/bin/cpp" to find cpp anywhere in the user's search path.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/cmd/cc/lex.c View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
giles
Hello golang-dev@googlegroups.com, I'd like you to review this change.
14 years, 2 months ago (2010-02-12 00:55:17 UTC) #1
rsc
It should probably be /usr/bin/cpp which is the standard location on Unix (the /bin/cpp is ...
14 years, 2 months ago (2010-02-12 14:45:10 UTC) #2
giles
Russ Cox <rsc@golang.org> wrote: > It should probably be /usr/bin/cpp which is the > standard ...
14 years, 2 months ago (2010-02-12 21:51:09 UTC) #3
rsc
LGTM
14 years, 2 months ago (2010-02-16 19:22:03 UTC) #4
rsc
14 years, 2 months ago (2010-02-16 19:32:05 UTC) #5
rsc
14 years, 2 months ago (2010-02-16 19:32:42 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=0f83c99edea0 ***

cc: use "cpp" anywhere in path, not "/bin/cpp"

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

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