mirror of
https://github.com/golang/go
synced 2024-11-23 00:10:07 -07:00
8d6958fc04
- use proper Win64 gcc calling convention when calling initcgo on amd64 - increase g0 stack size to 64K on amd64 to make it the same as 386 - implement C.sleep - do not use C.stat, since it is renamed to C._stat by mingw - use fopen to implement TestErrno, since C.strtol always succeeds on windows - skip TestSetEnv on windows, because os.Setenv sets windows process environment, while C.getenv inspects internal C runtime variable instead R=golang-dev, vcc.163, rsc CC=golang-dev https://golang.org/cl/5500094
46 lines
795 B
Makefile
46 lines
795 B
Makefile
# Copyright 2011 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
include ../../../src/Make.inc
|
|
|
|
TARG=runtime/cgotest
|
|
|
|
CGOFILES=\
|
|
align.go\
|
|
basic.go\
|
|
callback.go\
|
|
env.go\
|
|
exports.go\
|
|
helpers.go\
|
|
issue1222.go\
|
|
issue1328.go\
|
|
issue1560.go\
|
|
issue2462.go\
|
|
duplicate_symbol.go\
|
|
|
|
CGO_OFILES=\
|
|
callback_c.o\
|
|
|
|
OFILES=\
|
|
runtime.$O\
|
|
|
|
ifeq ($(GOOS),windows)
|
|
GCCVERSION=$(shell gcc -dumpversion)
|
|
ifeq ($(GOARCH),386)
|
|
GCCLIBDIR=/mingw/lib/gcc/mingw32/$(GCCVERSION)
|
|
CHKSTK=_chkstk.o
|
|
else
|
|
GCCLIBDIR=/mingw/lib/gcc/x86_64-w64-mingw32/$(GCCVERSION)
|
|
CHKSTK=_chkstk_ms.o
|
|
endif
|
|
|
|
CGOFILES+=sleep_windows.go
|
|
CGO_OFILES+=$(CHKSTK)
|
|
|
|
$(CHKSTK):
|
|
ar -x "$(GCCLIBDIR)/libgcc.a" $@
|
|
endif
|
|
|
|
include ../../../src/Make.pkg
|