explain the purpose of genoffset_test

This commit is contained in:
Matt Macy 2018-07-03 18:39:43 +00:00
parent 87c259d436
commit 018617b8ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335903

View File

@ -194,6 +194,9 @@ genoffset.o: $S/kern/genoffset.c
genoffset_test.c: $S/kern/genoffset.c
cp $S/kern/genoffset.c genoffset_test.c
# genoffset_test.o is not actually used for anything - the point of compiling it
# is to exercise the CTASSERT that checks that the offsets in the offset.inc
# _lite struct(s) match those in the original(s).
genoffset_test.o: genoffset_test.c offset.inc
${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST genoffset_test.c