Skip to content

Commit

Permalink
node: Add Makefile test target for arm64 (#4057)
Browse files Browse the repository at this point in the history
* node: Add Makefile test target for arm64

* node: Fix comment in Makefile
  • Loading branch information
johnsaigle authored Aug 6, 2024
1 parent c381d6b commit fc9ba90
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions node/Makefile
Original file line number Diff line number Diff line change
@@ -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 " ' ./...

0 comments on commit fc9ba90

Please sign in to comment.