From 0463332877335875cad3710a49135cca9aa62c29 Mon Sep 17 00:00:00 2001 From: John Saigle Date: Fri, 2 Aug 2024 17:06:44 -0400 Subject: [PATCH] node: Add Makefile test target for arm64 --- node/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/node/Makefile b/node/Makefile index 5786de84e1..d2dca16cd3 100644 --- a/node/Makefile +++ b/node/Makefile @@ -1,3 +1,13 @@ +.PHONY test test: +# Use this command on amd64 systems go test -v -ldflags '-extldflags "-Wl,--allow-multiple-definition" ' ./... +.PHONY test-arm64 +test-arm64: +# Use this command on arm64, other you will encounter linker errors. +# It's not perfect: it will fail due to 'undefined symbols' errors +# for packges using cgo. Still, it will get you farther than running +# the default command. +# To test a single package, use these -ldflags with e.g. ./pkg/governor + go test -ldflags '-extldflags "-Wl,-ld_classic " ' ./...