diff options
author | dim <dim@FreeBSD.org> | 2015-09-06 22:02:13 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-09-06 22:02:13 +0000 |
commit | fe6d24a2c11b8f1f6a6abb515a55ff47926356a5 (patch) | |
tree | 94661eaefb21a4331b2f3771b8cdd33606d1ef4f /lib/clang/libllvmprofiledata/Makefile | |
parent | 1e1e44a4f0eb2f6d300d97422a1a703836e74e47 (diff) | |
download | FreeBSD-src-fe6d24a2c11b8f1f6a6abb515a55ff47926356a5.zip FreeBSD-src-fe6d24a2c11b8f1f6a6abb515a55ff47926356a5.tar.gz |
Minimize the number of files compiled for clang only (e.g. when neither
WITH_CLANG_EXTRAS nor WITH_LLDB is in effect).
Diffstat (limited to 'lib/clang/libllvmprofiledata/Makefile')
-rw-r--r-- | lib/clang/libllvmprofiledata/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
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 <bsd.own.mk> +.include <src.opts.mk> 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" |