diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-06-09 19:57:20 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-06-09 19:57:20 +0000 |
commit | 6513cfc82fa7c5ed0587c25306429d60dccc1b84 (patch) | |
tree | af80d689607c24dc146d7ce544edeeb05e7e55c1 /share/mk | |
parent | 47c832c3dd9374a1d4a9e84e5670056ea0189a42 (diff) | |
download | src-6513cfc82fa7c5ed0587c25306429d60dccc1b84.tar.gz src-6513cfc82fa7c5ed0587c25306429d60dccc1b84.zip |
Hook clang into the build on i386/amd64/powerpc.
Approved by: ed (mentor)
Notes
Notes:
svn path=/head/; revision=208964
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.own.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 6690d68e9d83..8839bb4d1e0b 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -288,6 +288,18 @@ _no_fdt= FDT .endif # +# Default behaviour of MK_CLANG depends on the architecture. +# +.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \ + ${MACHINE_ARCH} == "powerpc" +_clang_yes=CLANG +_clang_no= +.else +_clang_yes= +_clang_no=CLANG +.endif + +# # MK_* options which default to "yes". # .for var in \ @@ -314,6 +326,7 @@ _no_fdt= FDT BZIP2 \ CALENDAR \ CDDL \ + ${_clang_yes} \ CPP \ CRYPT \ CTM \ @@ -417,6 +430,7 @@ MK_${var}:= yes BIND_LIBS \ BIND_SIGCHASE \ BIND_XML \ + ${_clang_no} \ ${_no_fdt} \ HESIOD \ IDEA @@ -497,6 +511,7 @@ MK_GROFF:= no .endif .if ${MK_TOOLCHAIN} == "no" +MK_CLANG:= no MK_GDB:= no .endif |