]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: permit go:cgo_import_dynamic anywhere
authorIan Lance Taylor <iant@golang.org>
Wed, 14 Feb 2018 15:42:40 +0000 (07:42 -0800)
committerAndrew Bonventre <andybons@golang.org>
Fri, 16 Feb 2018 03:31:46 +0000 (03:31 +0000)
commit41d3d153eb76f000e9f6e9edf68ed441d15081cb
treec5dc07758b6ddd3b8d04bcf4605e1151b8a06074
parentf2354d0aacdd5ce1952c5441c6a489378ccb7656
cmd/compile: permit go:cgo_import_dynamic anywhere

It's used on Solaris to import symbols from shared libraries, e.g., in
golang.org/x/sys/unix and golang.org/x/net/internal/socket.
We could use a different directive but that would require build tags
in all the places that use it.

Updates #23672
Updates #23749

Change-Id: I47fcf72a6d2862e304204705979c2056c2f78ec5
Reviewed-on: https://go-review.googlesource.com/94018
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/noder.go
src/cmd/go/internal/load/pkg.go