1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:14:41 -07:00
go/misc/cgo/test
Austin Clements af64b75b67 misc/cgo/test: add cgo build constraints
We're about to move this package to cmd/cgo/internal, where it will
get caught up in the "CGO_ENABLED=0 go install cmd" done by make.bash.
Currently, building this package with CGO_ENABLED=0 fails because it
contains several source files that don't themselves import "C", but do
import a subdirectory where that package imports "C" and thus has no
exported API.

Fix the CGO_ENABLED=0 build of this package by adding the necessary
cgo build tags. Not all source files need it, but this CL makes
"CGO_ENABLED=0 go test -c" work in this package.

For #37486.

Change-Id: Id137cdfbdd950eea802413536d990ab642ebcd7e
Reviewed-on: https://go-review.googlesource.com/c/go/+/493215
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
2023-05-12 12:00:00 +00:00
..
gcc68255 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue8756 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue8828 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9026 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9400 misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue9510a misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9510b misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue20266 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue23555a misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue23555b misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue24161arg misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue24161e0 misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue24161e1 misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue24161e2 misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue24161res misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue26213 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue26430 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue26743 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue27054 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue27340 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue29563 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue30527 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue41761a misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue43639 misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue52611a misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue52611b misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
backdoor.go
buildid_linux.go
callback_c_gc.c misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
callback_c_gccgo.c misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
callback_c.c misc/cgo/test: remove timing dependency from TestParallelSleep 2022-04-21 18:43:55 +00:00
callback.go runtime: unify asmcgocall and systemstack traceback setup 2021-02-19 00:02:06 +00:00
cgo_linux_test.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
cgo_stubs_android_test.go
cgo_test.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
cgo_thread_lock.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
cgo_unix_test.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
cthread_unix.c Revert "runtime/cgo: store M for C-created thread in pthread key" 2023-05-05 14:37:29 +00:00
cthread_windows.c Revert "runtime/cgo: store M for C-created thread in pthread key" 2023-05-05 14:37:29 +00:00
gcc68255.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue1435.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue4029.c misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue4029.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue4029w.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue4273.c
issue4273b.c
issue4339.c
issue4339.h
issue5548_c.c
issue5740a.c
issue5740b.c
issue6833_c.c
issue6907export_c.c
issue6997_linux.c misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue6997_linux.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue7234_test.go
issue8148.c misc/cgo/test: do not redeclare exported Go functions 2021-04-23 21:42:52 +00:00
issue8148.go misc/cgo/test: do not redeclare exported Go functions 2021-04-23 21:42:52 +00:00
issue8331.h
issue8517_windows.c
issue8517_windows.go
issue8517.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue8694.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue8756.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue8811.c
issue8828.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue9026.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue9400_linux.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue9510.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue18146.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue20266.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue20910.c
issue21897.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue21897b.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue23555.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue24161_darwin_test.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue26430.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue26743.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue27340.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue29563.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue30527.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue31891.c
issue41761.go misc/cgo/test: simplify for module mode 2022-11-04 20:47:59 +00:00
issue42018_windows.go cmd/cgo: add go:notinheap annotation to Windows handle types 2021-09-22 18:10:24 +00:00
issue42018.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
issue42495.go cmd/cgo: fix initialization of empty argument types 2020-11-13 15:15:15 +00:00
issue43639.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
issue52611.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
setgid2_linux.go misc/cgo/test: use fewer threads in TestSetgidStress in long mode 2022-07-27 20:21:13 +00:00
setgid_linux.go all: simplify the spelling of Linux 2021-04-13 13:56:21 +00:00
sigaltstack.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
sigprocmask.c misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
sigprocmask.go misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
test26213.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
test_unix.go misc/cgo/test: add cgo build constraints 2023-05-12 12:00:00 +00:00
test_windows.go
test.go misc/cgo/test: fix vet error 2023-05-12 11:59:58 +00:00
testx.c misc/cgo/test: do not redeclare exported Go functions 2021-04-23 21:42:52 +00:00
testx.go Revert "runtime/cgo: store M for C-created thread in pthread key" 2023-05-05 14:37:29 +00:00
typeparam.go cmd/cgo: update to handle ast.IndexListExpr 2021-10-07 18:02:14 +00:00