From e71d46d66c5fb040495a869e6d998cd7e5fc2e3c Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 7 Nov 2012 22:45:34 +0000 Subject: For kernel builds with PROFLEVEL >= 2, such as LINT, don't attempt to use the -mprofiler-epilogue option if the compiler is clang, as the flag is not supported. While here, fix up the value indentations. MFC after: 1 week --- sys/conf/kern.pre.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/conf') diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index cfcaa3b..442eac9 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -108,9 +108,12 @@ CFLAGS+= -falign-functions=16 .endif .if ${PROFLEVEL} >= 2 CFLAGS+= -DGPROF4 -DGUPROF -PROF= -pg -mprofiler-epilogue +PROF= -pg +.if ${COMPILER_TYPE} != "clang" +PROF+= -mprofiler-epilogue +.endif .else -PROF= -pg +PROF= -pg .endif .endif DEFINED_PROF= ${PROF} -- cgit v1.1