aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSasha Smundak <asmundak@google.com>2021-04-10 04:32:51 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-10 04:32:51 +0000
commit87b79b8fa614be3418297c530db0a30fc0cbddb8 (patch)
tree6f80214d2720b24c8dd1d3221e44a143e257c8c0
parente454b58a2b6cef7ff51ecf1e81df8b4b38b569a5 (diff)
parent9ff3db46c280fb7b6090b9ea14edece39d577370 (diff)
downloadstarlark-go-87b79b8fa614be3418297c530db0a30fc0cbddb8.tar.gz
Allow Soongs/blueprint's microfactory build starlark-go am: 9ff3db46c2android-s-beta-5android-s-beta-4android-s-beta-3android-s-beta-5android-s-beta-4
Original change: https://android-review.googlesource.com/c/platform/external/starlark-go/+/1672645 Change-Id: I2aa0e3df6011f64b1e8ce82730cf99213a6eb0cd
-rw-r--r--starlark/int_generic.go5
-rw-r--r--starlark/int_posix64.go5
2 files changed, 6 insertions, 4 deletions
diff --git a/starlark/int_generic.go b/starlark/int_generic.go
index 9e84d7f..8eed77d 100644
--- a/starlark/int_generic.go
+++ b/starlark/int_generic.go
@@ -1,5 +1,6 @@
-//+build !linux,!darwin,!dragonfly,!freebsd,!netbsd,!openbsd,!solaris darwin,arm64 !amd64,!arm64,!mips64x,!ppc64x
-
+// Always use this implementation, even for Posix-compliant platforms
+// (upstream code uses the implementation in int_posix64.go, but we
+// do not want to depend on golang.olg/x.sys/unix package).
package starlark
// generic Int implementation as a union
diff --git a/starlark/int_posix64.go b/starlark/int_posix64.go
index 1f13d66..2c49d94 100644
--- a/starlark/int_posix64.go
+++ b/starlark/int_posix64.go
@@ -1,5 +1,6 @@
-//+build linux darwin dragonfly freebsd netbsd openbsd solaris
-//+build amd64 arm64,!darwin mips64x ppc64x
+// For the android builds, ignore this file to avoid dependency
+// on yet another package (golang.org/x/sys/unix)
+//+build ignore
package starlark