Changeset View
Changeset View
Standalone View
Standalone View
head/sys/conf/kern.pre.mk
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | |||||
SAN_CFLAGS+= -fsanitize-coverage=trace-pc,trace-cmp | SAN_CFLAGS+= -fsanitize-coverage=trace-pc,trace-cmp | ||||
.else | .else | ||||
SAN_CFLAGS+= -fsanitize-coverage=trace-pc | SAN_CFLAGS+= -fsanitize-coverage=trace-pc | ||||
.endif | .endif | ||||
.endif | .endif | ||||
CFLAGS+= ${SAN_CFLAGS} | CFLAGS+= ${SAN_CFLAGS} | ||||
GCOV_ENABLED!= grep GCOV opt_global.h || true ; echo | |||||
.if !empty(GCOV_ENABLED) | |||||
.if ${COMPILER_TYPE} == "gcc" | |||||
GCOV_CFLAGS+= -fprofile-arcs -ftest-coverage | |||||
.endif | |||||
.endif | |||||
CFLAGS+= ${GCOV_CFLAGS} | |||||
# Put configuration-specific C flags last (except for ${PROF}) so that they | # Put configuration-specific C flags last (except for ${PROF}) so that they | ||||
# can override the others. | # can override the others. | ||||
CFLAGS+= ${CONF_CFLAGS} | CFLAGS+= ${CONF_CFLAGS} | ||||
.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id} | .if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id} | ||||
LDFLAGS+= -Wl,--build-id=sha1 | LDFLAGS+= -Wl,--build-id=sha1 | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |