1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:34:40 -07:00

mysterious bug: runtime.acid wasn't getting rebuilt

when switching architectures.

fix bug twice: make sure clean removes the file,
and generate into architecture-specific file names.

R=r
http://go/go-review/1013018
This commit is contained in:
Russ Cox 2009-10-28 14:03:16 -07:00
parent 8b2d2847a8
commit 32e979c0de
2 changed files with 5 additions and 5 deletions

View File

@ -82,9 +82,9 @@ include $(GOROOT)/src/Make.pkg
clean: clean-local
clean-local:
rm -f cgo2c */asm.h
rm -f cgo2c */asm.h runtime.acid.*
$(GOARCH)/asm.h: mkasmh.sh runtime.acid
$(GOARCH)/asm.h: mkasmh.sh runtime.acid.$(GOARCH)
./mkasmh.sh >$@.x
mv -f $@.x $@
@ -111,5 +111,5 @@ cgo2c: cgo2c.c
$(AS) $<
# for discovering offsets inside structs when debugging
runtime.acid: runtime.h proc.c
$(CC) -a proc.c >runtime.acid
runtime.acid.$(GOARCH): runtime.h proc.c
$(CC) -a proc.c >$@

View File

@ -55,5 +55,5 @@ aggr != "" && /^ / {
offset=$(NF-1);
printf("#define %s_%s %s\n", aggr, name, offset);
}
' runtime.acid
' runtime.acid.$GOARCH