diff options
author | Sasha Smundak <asmundak@google.com> | 2021-04-09 13:28:12 -0700 |
---|---|---|
committer | Sasha Smundak <asmundak@google.com> | 2021-04-09 13:44:55 -0700 |
commit | 9ff3db46c280fb7b6090b9ea14edece39d577370 (patch) | |
tree | 6f80214d2720b24c8dd1d3221e44a143e257c8c0 /starlark/int_generic.go | |
parent | 949fa76edc5da2b2c091db7ccc131d3bf1654833 (diff) | |
download | starlark-go-9ff3db46c280fb7b6090b9ea14edece39d577370.tar.gz |
Allow Soongs/blueprint's microfactory build starlark-goandroid-s-beta-2android-s-beta-1
Change build directives to avoids additional external dependency
(golang.org/x/sys/unix) at the cost of small performance degradation
when handling integers.
Bug: 172923994
Test: treehugger
Change-Id: I11aa727031a523a309ba9372300e6d413847e02d
Diffstat (limited to 'starlark/int_generic.go')
-rw-r--r-- | starlark/int_generic.go | 5 |
1 files changed, 3 insertions, 2 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 |