]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: Plan 9 build needs an additional include path
authorLucio De Re <lucio.dere@gmail.com>
Fri, 6 Sep 2013 06:15:44 +0000 (16:15 +1000)
committerRob Pike <r@golang.org>
Fri, 6 Sep 2013 06:15:44 +0000 (16:15 +1000)
commitfd7ddad160bfcfd861db00e5d4df01ceaf0a66e9
tree5042912f46f0046b8287b926ab3d78f8a80617cb
parent6833d1b43643d8102be45cb6b4ee5912cafed8e7
cmd/dist: Plan 9 build needs an additional include path
cmd/cc: bv.c imports libc.h twice

When using the Plan 9 compiler, the invocation

        #include <../ld/textflag.h>

works for the toolchain, but not for the MACH library.

Module cmd/cc/bv.c includes libc.h and "cc.h", which in
turn also includes libc.h.  In the Plan 9 context, this
causes a number of duplicate definitions.

R=golang-dev, rsc, r
CC=golang-dev
https://golang.org/cl/13303047
src/cmd/cc/bv.c
src/cmd/dist/build.c