AFAICT, this was an oversight from
9e5787d2284e187abb5b654d924394a65772e004 (svn r364746). That revision
inadvertently disabled assertions unconditionally.
Sponsored by: Axcient
Differential D28256
ZFS: fix assertions with INVARIANTS asomers on Jan 20 2021, 3:56 PM. Authored by Tags None Referenced Files
Details AFAICT, this was an oversight from Sponsored by: Axcient
Diff Detail
Event TimelineComment Actions The asserts are working fine when building OpenZFS out of tree, so how is it that this is needed in tree? I am concerned that this Makefile is not well maintained. It is essentially a copy of sys/contrib/openzfs/module/Makefile.bsd and I'd imagine with a little attention it could be trimmed down to a few lines and an include for that file. Comment Actions I've never tried building OpenZFS out-of-tree. For in-tree builds, nothing defines DEBUG if you don't include this file. It probably works for the out-of-tree build because if the stanza that begins .if defined(WITH_DEBUG) && ${WITH_DEBUG} == "true" CFLAGS+= -DZFS_DEBUG -g which only appears in sys/contrib/openzfs/module/Makefile.bsd . |