Commit 32e979c0 authored by Russ Cox's avatar Russ Cox

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
parent 8b2d2847
...@@ -82,9 +82,9 @@ include $(GOROOT)/src/Make.pkg ...@@ -82,9 +82,9 @@ include $(GOROOT)/src/Make.pkg
clean: clean-local clean: clean-local
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 ./mkasmh.sh >$@.x
mv -f $@.x $@ mv -f $@.x $@
...@@ -111,5 +111,5 @@ cgo2c: cgo2c.c ...@@ -111,5 +111,5 @@ cgo2c: cgo2c.c
$(AS) $< $(AS) $<
# for discovering offsets inside structs when debugging # for discovering offsets inside structs when debugging
runtime.acid: runtime.h proc.c runtime.acid.$(GOARCH): runtime.h proc.c
$(CC) -a proc.c >runtime.acid $(CC) -a proc.c >$@
...@@ -55,5 +55,5 @@ aggr != "" && /^ / { ...@@ -55,5 +55,5 @@ aggr != "" && /^ / {
offset=$(NF-1); offset=$(NF-1);
printf("#define %s_%s %s\n", aggr, name, offset); printf("#define %s_%s %s\n", aggr, name, offset);
} }
' runtime.acid ' runtime.acid.$GOARCH
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment