From fc9ba90425071c7a90b67a539cfd35c1bc4b9027 Mon Sep 17 00:00:00 2001 From: John Saigle <4022790+johnsaigle@users.noreply.github.com> Date: Mon, 5 Aug 2024 22:08:10 -0400 Subject: [PATCH] node: Add Makefile test target for arm64 (#4057) * node: Add Makefile test target for arm64 * node: Fix comment in Makefile --- node/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/node/Makefile b/node/Makefile index 5786de84e1..5fc2c94974 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, otherwise 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 " ' ./...