Commit 95907c47 authored by Russ Cox's avatar Russ Cox

runtime: fix build

TBR=r
CC=golang-dev
https://golang.org/cl/5493061
parent 851f3013
......@@ -245,5 +245,5 @@ endif
%.$O: _obj/%.c $(HFILES)
$(CC) $(CFLAGS) -I . -o "$@" _obj/$*.c
%.$O: %.s
%.$O: %.s $(HFILES)
$(AS) $*.s
......@@ -51,6 +51,11 @@ OFILES_windows=\
OFILES_386=\
vlop_386.$O\
vlrt_386.$O\
traceback_x86.$O\
# amd64-specific object files
OFILES_amd64=\
traceback_x86.$O\
# arm-specific object files
OFILES_arm=\
......@@ -58,6 +63,7 @@ OFILES_arm=\
softfloat_arm.$O\
vlop_arm.$O\
vlrt_arm.$O\
traceback_x86.$O\
OFILES=\
alg.$O\
......@@ -97,7 +103,6 @@ OFILES=\
sys_$(GOOS)_$(GOARCH).$O\
thread_$(GOOS).$O\
time.$O\
traceback_$(GOARCH).$O\
$(OFILES_$(GOARCH))\
$(OFILES_$(GOOS))\
......@@ -113,6 +118,7 @@ HFILES=\
hashmap.h\
malloc.h\
stack.h\
asm_$(GOARCH).h\
$(AUTOHFILES)\
GOFILES+=$(GOFILES_$(GOOS))
......@@ -157,10 +163,8 @@ version_$(GOOS).go:
./goc2c "`pwd`/$<" > $@.tmp
mv -f $@.tmp $@
%.$O: asm_$(GOARCH).h
# for discovering offsets inside structs when debugging
runtime.acid.$(GOARCH): runtime.h proc.c
runtime.acid.$(GOARCH): runtime.h proc.c $(AUTOHFILES)
$(CC) $(CFLAGS) -a proc.c >$@
# 386 traceback is really amd64 traceback
......
......@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build amd64 386
#include "runtime.h"
#include "arch_GOARCH.h"
#include "malloc.h"
......
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