aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dist
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2019-10-09 10:22:20 -0400
committerCherry Zhang <cherryyz@google.com>2019-10-16 15:57:07 +0000
commit5caac2f73efe7fc6919f7850d99c35cde02012b5 (patch)
treed1aab7ddcf0096da6d15c53a2c54f01838d0858e /src/cmd/dist
parentc9470b04833332a8e2287364ccfa3e690f5a2047 (diff)
downloadgo-5caac2f73efe7fc6919f7850d99c35cde02012b5.tar.xz
[dev.link] cmd: default to new object files
Switch the default to new object files. Internal linking cgo is disabled for now, as it does not work yet in newobj mode. Shared libraries are also broken. Disable some tests that are known broken for now. Change-Id: I8ca74793423861d607a2aa7b0d89a4f4d4ca7671 Reviewed-on: https://go-review.googlesource.com/c/go/+/200161 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jeremy Faller <jeremy@golang.org>
Diffstat (limited to 'src/cmd/dist')
-rw-r--r--src/cmd/dist/test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
index 273ef2e19a..46556f2f79 100644
--- a/src/cmd/dist/test.go
+++ b/src/cmd/dist/test.go
@@ -585,7 +585,7 @@ func (t *tester) registerTests() {
},
})
// Also test a cgo package.
- if t.cgoEnabled {
+ if t.cgoEnabled && t.internalLink() {
t.tests = append(t.tests, distTest{
name: "pie_internal_cgo",
heading: "internal linking of -buildmode=pie",
@@ -681,7 +681,7 @@ func (t *tester) registerTests() {
if t.supportedBuildmode("c-shared") {
t.registerHostTest("testcshared", "../misc/cgo/testcshared", "misc/cgo/testcshared", ".")
}
- if t.supportedBuildmode("shared") {
+ if t.supportedBuildmode("shared") && false { // TODO: newobj
t.registerTest("testshared", "../misc/cgo/testshared", t.goTest(), t.timeout(600), ".")
}
if t.supportedBuildmode("plugin") {
@@ -904,6 +904,9 @@ func (t *tester) extLink() bool {
}
func (t *tester) internalLink() bool {
+ if true { // appease vet...
+ return false // TODO: newobj
+ }
if gohostos == "dragonfly" {
// linkmode=internal fails on dragonfly since errno is a TLS relocation.
return false