From 978f68ea34098471fb11adc77fd6ea2af326a99d Mon Sep 17 00:00:00 2001 From: battlmonstr Date: Tue, 13 Aug 2024 10:32:45 +0200 Subject: [PATCH] remove macOS Intel support --- bindings.go | 2 +- bindings_stub.go | 2 +- link_macos_x64.go | 10 ---------- 3 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 link_macos_x64.go diff --git a/bindings.go b/bindings.go index 5e88ad1..6510608 100644 --- a/bindings.go +++ b/bindings.go @@ -1,4 +1,4 @@ -//go:build !nosilkworm && unix && !(linux && arm64) +//go:build !nosilkworm && unix && !(linux && arm64) && !(darwin && amd64) package silkworm_go diff --git a/bindings_stub.go b/bindings_stub.go index a592a37..93693fe 100644 --- a/bindings_stub.go +++ b/bindings_stub.go @@ -1,4 +1,4 @@ -//go:build nosilkworm || windows || (linux && arm64) +//go:build nosilkworm || windows || (linux && arm64) || (darwin && amd64) package silkworm_go diff --git a/link_macos_x64.go b/link_macos_x64.go deleted file mode 100644 index 6dff84d..0000000 --- a/link_macos_x64.go +++ /dev/null @@ -1,10 +0,0 @@ -//go:build !nosilkworm && darwin && amd64 - -package silkworm_go - -// #cgo LDFLAGS: -lsilkworm_capi -// #cgo LDFLAGS: -L${SRCDIR}/lib/macos_x64 -// #cgo LDFLAGS: -Wl,-rpath,./ -// #cgo LDFLAGS: -Wl,-rpath,./../lib -// #cgo LDFLAGS: -Wl,-rpath ${SRCDIR}/lib/macos_x64 -import "C"