From 93580e30cfdf69bc2d56f5feef619c5f14d1b55a Mon Sep 17 00:00:00 2001 From: Nicholas Wiersma Date: Tue, 3 Sep 2024 06:11:07 +0200 Subject: [PATCH] fix: exclude arm from x64 config --- config_arm.go | 8 ++++++++ config_x64.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 config_arm.go diff --git a/config_arm.go b/config_arm.go new file mode 100644 index 0000000..a168fd7 --- /dev/null +++ b/config_arm.go @@ -0,0 +1,8 @@ +package avro + +import "math" + +// Max allocation size for an array due to the limit in number of bits in a heap address: +// https://github.com/golang/go/blob/7f76c00fc5678fa782708ba8fece63750cb89d03/src/runtime/malloc.go#L190 +// 32-bit systems accept the full 32bit address space +const maxAllocSize = math.MaxInt diff --git a/config_x64.go b/config_x64.go index 5ee7fef..cecafd6 100644 --- a/config_x64.go +++ b/config_x64.go @@ -1,4 +1,4 @@ -//go:build !386 +//go:build !386 && !arm package avro