Skip to content

Commit

Permalink
libpmc: use $MACHINE_CPUARCH
Browse files Browse the repository at this point in the history
This is preferred over $MACHINE_ARCH for these types of checks, although
it makes no difference for amd64 or i386. No functional change intended.

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
mhorne committed May 31, 2021
1 parent 689c7e7 commit 3864da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libpmc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LDADD+= -lc++

.if ${MACHINE_CPUARCH} == "aarch64"
EVENT_ARCH="arm64"
.elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
.elif ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
EVENT_ARCH="x86"
.elif ${MACHINE_ARCH} == "powerpc"
EVENT_ARCH="powerpc"
Expand Down

0 comments on commit 3864da3

Please sign in to comment.