1
0
mirror of https://github.com/golang/go synced 2024-11-12 13:00:57 -07:00
go/misc/cgo/test
KJ Tsanaktsidis 786120b55d cmd/cgo: document #include <> search path behaviour
cgo effectively prepends -I${SRCDIR} to the header include path of all
preambles it processes, so when an #include <> matches a header file
both in the source directory and also another include directory, the
local copy will be used in preference.

This behaviour is surprising but unfortunately also longstanding and
relied upon by packages in the wild, so the best we can do is to
document it.

Fixes #41059

Change-Id: If6d2818294b2bd94ea0fe5fd6ce77e54b3e167a6
Reviewed-on: https://go-review.googlesource.com/c/go/+/251758
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2020-09-01 23:12:18 +00:00
..
testdata cmd/cgo,cmd/fix,misc/cgo: map the EGLConfig C type to uintptr in Go 2020-05-31 09:48:08 +00:00
backdoor.go
buildid_linux.go
callback_c_gc.c
callback_c_gccgo.c
callback_c.c
callback.go
cgo_linux_test.go
cgo_stubs_android_test.go
cgo_test.go cmd/cgo: build unique C type cache keys from parent names 2019-10-05 00:16:04 +00:00
cgo_thread_lock.go
cgo_unix_test.go
cthread_unix.c
cthread_windows.c
issue4029.c
issue4029.go
issue4029w.go
issue4273.c
issue4273b.c
issue4339.c
issue4339.h
issue5548_c.c
issue5740a.c
issue5740b.c
issue6833_c.c
issue6907export_c.c
issue6997_linux.c
issue6997_linux.go
issue7234_test.go
issue8148.go
issue8331.h
issue8517_windows.c
issue8517_windows.go
issue8517.go
issue8694.go
issue8811.c
issue18146.go
issue20910.c
issue21897.go misc/cgo/test: re-enable darwin cgo tests in race mode 2020-01-10 10:04:49 +00:00
issue21897b.go misc/cgo/test: re-enable darwin cgo tests in race mode 2020-01-10 10:04:49 +00:00
issue31891.c cmd/cgo: build unique C type cache keys from parent names 2019-10-05 00:16:04 +00:00
overlaydir_test.go misc: remove use of relative directories in overlayDir functions 2019-11-25 16:26:15 +00:00
pkg_test.go all: remove scattered remnants of darwin/arm 2020-04-08 18:35:49 +00:00
setgid_linux.go
sigaltstack.go all: remove scattered remnants of darwin/386 2020-04-08 18:37:38 +00:00
sigprocmask.c
sigprocmask.go
test_unix.go
test_windows.go
test.go cmd/cgo: document #include <> search path behaviour 2020-09-01 23:12:18 +00:00
testx.go cmd/cgo: use consistent tag for a particular struct 2020-04-14 18:59:37 +00:00