1
0
mirror of https://github.com/golang/go synced 2024-11-12 08:40:21 -07:00

runtime: fix mkasmh.h

We weren't properly deleting the various header
files (that were temporarily renamed) if a $CC
for the current $GOARCH didn't exist.  And since
the compiler checks the current directory for
headers before any -I arguments, this had the
unfortunate side effect of including the last
generated headers instead of the correct ones.

R=r, rsc
CC=golang-dev
https://golang.org/cl/5581055
This commit is contained in:
Anthony Martin 2012-01-30 19:25:40 -08:00
parent 10498f4d33
commit bacb1b70f7

View File

@ -3,6 +3,7 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
trap "rm -f arch_GOARCH.h defs_GOOS_GOARCH.h os_GOOS.h signals_GOOS.h" EXIT SIGINT SIGTERM
set -e set -e
SYS=$1 SYS=$1
@ -135,5 +136,3 @@ aggr != "" && /^ / {
printf("#define %s_%s %s\n", aggr, name, offset); printf("#define %s_%s %s\n", aggr, name, offset);
} }
' '
rm -f arch_GOARCH.h defs_GOOS_GOARCH.h os_GOOS.h signals_GOOS.h