mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
FreeBSD: decouple ZFS_DEBUG from kernel debug settings
Reviewed-by: Martelli Nikola @martellini Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #11213
This commit is contained in:
parent
0657326f9c
commit
cd44f5be37
@ -39,7 +39,13 @@ CFLAGS+= -DHAVE_AVX2 -DHAVE_AVX -D__x86_64 -DHAVE_SSE2 -DHAVE_AVX512F -DHAVE_SSS
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_DEBUG) && ${WITH_DEBUG} == "true"
|
.if defined(WITH_DEBUG) && ${WITH_DEBUG} == "true"
|
||||||
CFLAGS+= -DINVARIANTS -DWITNESS -g -O0 -DZFS_DEBUG -DOPENSOLARIS_WITNESS
|
CFLAGS+= -DZFS_DEBUG -g
|
||||||
|
.if defined(WITH_INVARIANTS) && ${WITH_INVARIANTS} == "true"
|
||||||
|
CFLAGS+= -DINVARIANTS -DWITNESS -DOPENSOLARIS_WITNESS
|
||||||
|
.endif
|
||||||
|
.if defined(WITH_O0) && ${WITH_O0} == "true"
|
||||||
|
CFLAGS+= -O0
|
||||||
|
.endif
|
||||||
.else
|
.else
|
||||||
CFLAGS += -DNDEBUG
|
CFLAGS += -DNDEBUG
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user