From fe6d24a2c11b8f1f6a6abb515a55ff47926356a5 Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 6 Sep 2015 22:02:13 +0000 Subject: Minimize the number of files compiled for clang only (e.g. when neither WITH_CLANG_EXTRAS nor WITH_LLDB is in effect). --- lib/clang/libllvmprofiledata/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/clang/libllvmprofiledata/Makefile') diff --git a/lib/clang/libllvmprofiledata/Makefile b/lib/clang/libllvmprofiledata/Makefile index 332bf1c..a38a190 100644 --- a/lib/clang/libllvmprofiledata/Makefile +++ b/lib/clang/libllvmprofiledata/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -.include +.include LIB= llvmprofiledata @@ -12,7 +12,10 @@ SRCS= CoverageMapping.cpp \ InstrProfReader.cpp \ InstrProfWriter.cpp \ SampleProf.cpp \ - SampleProfReader.cpp \ - SampleProfWriter.cpp + SampleProfReader.cpp + +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= SampleProfWriter.cpp +.endif .include "../clang.lib.mk" -- cgit v1.1