mirror of
https://github.com/golang/go.git
synced 2024-09-30 23:07:22 +00: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:
parent
8b2d2847a8
commit
32e979c0de
@ -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
|
|||||||
$(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 != "" && /^ / {
|
|||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user