Skip to content

Commit

Permalink
package/go: enable ARMv7 optimizations for 32-bit ARMv8
Browse files Browse the repository at this point in the history
When building for an ARMv8 in 32-bit, Go does not yet support ARMv8
optimizations (see issue: golang/go#29373)
but can still benefit from ARMv7 optimizations.

Signed-off-by: Michael Baudino <[email protected]>
[[email protected]:
  - move the comment to its own line, expand and reword it a bit
  - reword the commit log
]
Signed-off-by: Yann E. MORIN <[email protected]>
  • Loading branch information
michaelbaudino authored and yann-morin-1998 committed Dec 19, 2020
1 parent 4e81152 commit c59409a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/go/go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ else ifeq ($(BR2_ARM_CPU_ARMV6),y)
GO_GOARM = 6
else ifeq ($(BR2_ARM_CPU_ARMV7A),y)
GO_GOARM = 7
else ifeq ($(BR2_ARM_CPU_ARMV8A),y)
# Go doesn't support 32-bit GOARM=8 (https://github.com/golang/go/issues/29373)
# but can still benefit from amrv7 optimisations
GO_GOARM = 7
endif
else ifeq ($(BR2_aarch64),y)
GO_GOARCH = arm64
Expand Down

0 comments on commit c59409a

Please sign in to comment.