summaryrefslogtreecommitdiffstats
path: root/lib/clang
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-05-10 16:38:03 +0000
committerimp <imp@FreeBSD.org>2014-05-10 16:38:03 +0000
commite6fca569b67e405849736e04263da799f4f753c7 (patch)
tree2e8cac98e466775e3d1f30f7068850ba6600f4e7 /lib/clang
parent83f75350837bec3abb754f10990fc31754daf37f (diff)
downloadFreeBSD-src-e6fca569b67e405849736e04263da799f4f753c7.zip
FreeBSD-src-e6fca569b67e405849736e04263da799f4f753c7.tar.gz
Eliminate EARLY_BUILD flag. It is redundant and means MK_CLANG_FULL=no
and MK_LLDB=no, so set those explicitly (now that we can do that). Simplify tests for these variables as well, since we know they will always be defined regardless of the phase of the build.
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/Makefile11
-rw-r--r--lib/clang/clang.build.mk4
2 files changed, 6 insertions, 9 deletions
diff --git a/lib/clang/Makefile b/lib/clang/Makefile
index ae7ae4a..328aa78 100644
--- a/lib/clang/Makefile
+++ b/lib/clang/Makefile
@@ -3,8 +3,7 @@
.include <src.opts.mk>
.if !make(install)
-.if !defined(EARLY_BUILD)
-.if defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no"
+.if ${MK_CLANG_FULL} != "no"
_libclangstaticanalyzer= \
libclangstaticanalyzercheckers \
libclangstaticanalyzercore \
@@ -12,13 +11,11 @@ _libclangstaticanalyzer= \
_libclangarcmigrate= \
libclangarcmigrate
.endif # MK_CLANG_FULL
-.if (defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no") || \
- (defined(MK_LLDB) && ${MK_LLDB} != "no")
+.if ${MK_CLANG_FULL} != "no" || ${MK_LLDB} != "no"
_libclangrewriter= \
libclangrewritecore \
libclangrewritefrontend
.endif # (MK_CLANG_FULL || MK_LLDB)
-.endif # !EARLY_BUILD
SUBDIR= libclanganalysis \
${_libclangarcmigrate} \
@@ -105,7 +102,7 @@ SUBDIR+=libllvmexecutionengine \
libllvmruntimedyld
.endif # MK_CLANG_EXTRAS | LLDB
-.if !defined(EARLY_BUILD) && ${MK_LLDB} != "no"
+.if ${MK_LLDB} != "no"
SUBDIR+=liblldb \
\
liblldbAPI \
@@ -141,7 +138,7 @@ SUBDIR+=liblldb \
liblldbPluginSymbolVendorELF \
liblldbPluginUnwindAssemblyInstEmulation \
liblldbPluginUnwindAssemblyX86
-.endif # !EARLY_BUILD && MK_LLDB
+.endif # MK_LLDB
.endif # !make(install)
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk
index 057b8aa..3f75a6d 100644
--- a/lib/clang/clang.build.mk
+++ b/lib/clang/clang.build.mk
@@ -10,11 +10,11 @@ CFLAGS+= -I${LLVM_SRCS}/include -I${CLANG_SRCS}/include \
-DLLVM_ON_UNIX -DLLVM_ON_FREEBSD \
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG
-.if !defined(EARLY_BUILD) && defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no"
+.if ${MK_CLANG_FULL} != "no"
CFLAGS+= -DCLANG_ENABLE_ARCMT \
-DCLANG_ENABLE_REWRITER \
-DCLANG_ENABLE_STATIC_ANALYZER
-.endif # !EARLY_BUILD && MK_CLANG_FULL
+.endif # MK_CLANG_FULL
# LLVM is not strict aliasing safe as of 12/31/2011
CFLAGS+= -fno-strict-aliasing
OpenPOWER on IntegriCloud