Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Add support for LLVM/Clang
details: https://anonhg.NetBSD.org/src/rev/5af516885661
branches: trunk
changeset: 765071:5af516885661
user: adam <adam%NetBSD.org@localhost>
date: Wed May 18 13:08:14 2011 +0000
description:
Add support for LLVM/Clang
diffstat:
share/mk/bsd.own.mk | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 8369739c8bff -r 5af516885661 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk Wed May 18 12:54:15 2011 +0000
+++ b/share/mk/bsd.own.mk Wed May 18 13:08:14 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.664 2011/05/09 14:36:48 haad Exp $
+# $NetBSD: bsd.own.mk,v 1.665 2011/05/18 13:08:14 adam Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@@ -47,7 +47,7 @@
TOOLCHAIN_MISSING?= no
# default to GCC4
-.if !defined(HAVE_GCC) && !defined(HAVE_PCC)
+.if !defined(HAVE_GCC) && !defined(HAVE_PCC) && !defined(HAVE_LLVM)
HAVE_GCC= 4
.endif
@@ -207,6 +207,14 @@
OBJC= false
.endif
+.if defined(HAVE_LLVM) && ${USETOOLS_LLVM:Uyes} == "yes"
+CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang
+CPP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang-cpp
+CXX= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang++
+FC= false
+OBJC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang
+.endif
+
#
# Make sure DESTDIR is set, so that builds with these tools always
# get appropriate -nostdinc, -nostdlib, etc. handling. The default is
Home |
Main Index |
Thread Index |
Old Index