1
0
mirror of https://github.com/golang/go synced 2024-11-25 10:17:57 -07:00

runtime: fix build on gri's machine

Why it was not failing anywhere else I don't know,
but the Makefile was definitely wrong.  The rules
must not run in parallel.

TBR=r
CC=golang-dev
https://golang.org/cl/5489069
This commit is contained in:
Russ Cox 2011-12-16 18:31:09 -05:00
parent cfd17a1b57
commit 72bdd86835

View File

@ -50,13 +50,6 @@ AUTO=\
zsyscall_windows_amd64.c\ zsyscall_windows_amd64.c\
zversion.go\ zversion.go\
HFILES=\
arch_GOARCH.h\
os_GOOS.h\
signals_GOOS.h\
defs_GOOS_GOARCH.h\
zasm_GOOS_GOARCH.h\
all: auto all: auto
auto: $(AUTO) auto: $(AUTO)
@ -90,29 +83,19 @@ zgoarch_%.go:
(echo '// AUTO-GENERATED; run make -f Makefile.auto'; echo; echo 'package runtime'; echo; echo 'const theGoarch = "$*"') >$@ (echo '// AUTO-GENERATED; run make -f Makefile.auto'; echo; echo 'package runtime'; echo; echo 'const theGoarch = "$*"') >$@
# definitions of runtime structs, translated from C to Go # definitions of runtime structs, translated from C to Go
zruntime_defs_%.go: proc.c iface.c hashmap.c chan.c $(HFILES) mkgodefs.sh zruntime_defs_%.go: proc.c iface.c hashmap.c chan.c mkgodefs.sh
./mkgodefs.sh $* proc.c iface.c hashmap.c chan.c >$@.tmp ./mkgodefs.sh $* proc.c iface.c hashmap.c chan.c >$@.tmp
mv -f $@.tmp $@ mv -f $@.tmp $@
# struct field offsets #defined for assembly # struct field offsets #defined for assembly
zasm_%.h: mkasmh.sh proc.c $(HFILES) zasm_%.h: mkasmh.sh proc.c
./mkasmh.sh $* >$@.tmp ./mkasmh.sh $* >$@.tmp
mv -f $@.tmp $@ mv -f $@.tmp $@
clean: clean:
rm -f goc2c mkversion $(AUTO) rm -f goc2c mkversion $(AUTO)
arch_GOARCH.h: arch_$(GOARCH).h # This file must not run targets in parallel:
cp $^ $@ # mkgodefs.sh and mkasmh.sh scribble on the same files.
# This is a magic name known to GNU make.
defs_GOOS_GOARCH.h: defs_$(GOOS)_$(GOARCH).h .NOTPARALLEL:
cp $^ $@
os_GOOS.h: os_$(GOOS).h
cp $^ $@
signals_GOOS.h: signals_$(GOOS).h
cp $^ $@
zasm_GOOS_GOARCH.h: zasm_$(GOOS)_$(GOARCH).h
cp $^ $@