Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107431867
D30531.id90069.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30531.id90069.diff
View Options
Index: Makefile.inc1
===================================================================
--- Makefile.inc1
+++ Makefile.inc1
@@ -2535,9 +2535,7 @@
_libmagic=lib/libmagic
.endif
-.if ${MK_PMC} != "no" && \
- (${TARGET_ARCH} == "aarch64" || ${TARGET_ARCH} == "amd64" || \
- ${TARGET_ARCH} == "i386")
+.if ${MK_PMC} != "no"
_jevents=lib/libpmc/pmu-events
.endif
Index: lib/libpmc/Makefile
===================================================================
--- lib/libpmc/Makefile
+++ lib/libpmc/Makefile
@@ -8,15 +8,15 @@
CFLAGS+= -I${SRCTOP}/${RELDIR:H}/libpmcstat
LDADD+= -lc++
-.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_ARCH} == "amd64" || \
- ${MACHINE_ARCH} == "i386"
-
.if ${MACHINE_CPUARCH} == "aarch64"
EVENT_ARCH="arm64"
.elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
EVENT_ARCH="x86"
.elif ${MACHINE_ARCH} == "powerpc"
EVENT_ARCH="powerpc"
+.else
+# This will generate an empty events table
+EVENT_ARCH="none"
.endif
.if ${MK_DIRDEPS_BUILD} == "yes"
@@ -40,7 +40,6 @@
fi
CLEANFILES+= libpmc_events.c libpmc_events.c.tmp
SRCS+= libpmc_events.c
-.endif
WARNS?= 3
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 15, 2:03 AM (10 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15804200
Default Alt Text
D30531.id90069.diff (1 KB)
Attached To
Mode
D30531: libpmc: always generate libpmc_events.c
Attached
Detach File
Event Timeline
Log In to Comment