summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2011-04-05 08:49:47 +0000
committerimp <imp@FreeBSD.org>2011-04-05 08:49:47 +0000
commit61779229d82d3674d7e5f2cdc525b48c4323c996 (patch)
tree2b6a22c99fb751bf241f3383f84a8639ca5eefa4 /Makefile.inc1
parent63d2cbfc90eadea83178c259ee1adb981a53e173 (diff)
downloadFreeBSD-src-61779229d82d3674d7e5f2cdc525b48c4323c996.zip
FreeBSD-src-61779229d82d3674d7e5f2cdc525b48c4323c996.tar.gz
Make clang default on x86 and powerpc, but not on other architectures.
Make fdt default on arm and powerpc. This now includes cross compiled targets, where before we tried to make it host-based. Also, move the lists of default yes and no options to a variable. In general, only build tools should get this treatment in bsd.own.mk. Also, the use of TARGET* in the bsd.*mk files is discouraged, but necessary here due to the ordering of things in buildworld. We make the native case work by testing MACHINE_ARCH after TARGET_ARCH.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc14
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index d4cd209..d4bb675 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1019,11 +1019,11 @@ _gensnmptree= usr.sbin/bsnmpd/gensnmptree
_crunchgen= usr.sbin/crunch/crunchgen
.endif
-# XXX: There is no way to specify bootstrap tools depending on MK-flags
-# with different per-architecture default values. Always build tblgen.
+.if ${MK_CLANG} != "no"
_clang_tblgen= \
lib/clang/libllvmsupport \
usr.bin/clang/tblgen
+.endif
.if ${MK_CDDL} != "no"
_dtrace_tools= cddl/usr.bin/sgsmsg cddl/lib/libctf lib/libelf \
OpenPOWER on IntegriCloud