Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/llvm LLVM switched to three component point rel...
details: https://anonhg.NetBSD.org/src/rev/4b36e3db6e78
branches: trunk
changeset: 333702:4b36e3db6e78
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Nov 14 15:56:12 2014 +0000
description:
LLVM switched to three component point release version, so follow here.
diffstat:
external/bsd/llvm/Makefile.inc | 9 +++++----
external/bsd/llvm/include/Makefile | 26 ++++++++------------------
2 files changed, 13 insertions(+), 22 deletions(-)
diffs (91 lines):
diff -r 63134e6c1f10 -r 4b36e3db6e78 external/bsd/llvm/Makefile.inc
--- a/external/bsd/llvm/Makefile.inc Fri Nov 14 14:53:17 2014 +0000
+++ b/external/bsd/llvm/Makefile.inc Fri Nov 14 15:56:12 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.74 2014/08/10 17:34:19 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.75 2014/11/14 15:56:12 joerg Exp $
.if !defined(LLVM_TOPLEVEL_MK)
LLVM_TOPLEVEL_MK=
@@ -17,8 +17,9 @@
MCLINKER_REVISION= deeb2a77b4165827316f88e0a7ba4ba6b743a080
MCLINKER_ROOT= https://code.google.com/p/mclinker/
-LLVM_VERSION= 3.6
-CLANG_VERSION= 3.6
+LLVM_VERSION= 3.6.0
+CLANG_VERSION= 3.6.0
+LLD_VERSION= 3.6.0
CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang
LLD_SRCDIR:= ${.PARSEDIR}/dist/lld
@@ -63,7 +64,7 @@
LLVM_CONFIGURE_ARGS= \
--enable-targets=x86,powerpc,sparc,aarch64,arm,mips \
- --with-c-include-dirs=/usr/include/clang-${CLANG_VERSION}:/usr/include \
+ --with-c-include-dirs=/usr/include/clang-${CLANG_VERSION:R}:/usr/include \
--disable-timestamps --prefix=/usr --sysconfdir=/etc/llvm \
--with-clang-srcdir=${CLANG_SRCDIR} \
--host=${LLVM_PLATFORM} --disable-compiler-version-checks \
diff -r 63134e6c1f10 -r 4b36e3db6e78 external/bsd/llvm/include/Makefile
--- a/external/bsd/llvm/include/Makefile Fri Nov 14 14:53:17 2014 +0000
+++ b/external/bsd/llvm/include/Makefile Fri Nov 14 15:56:12 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2014/09/06 01:02:21 joerg Exp $
+# $NetBSD: Makefile,v 1.34 2014/11/14 15:56:12 joerg Exp $
.include <bsd.init.mk>
@@ -43,17 +43,7 @@
.elif ${MACHINE_CPU} == "arm"
INCS= arm_acle.h
.endif
-INCSDIR= /usr/include/clang-${CLANG_VERSION}
-
-HEADER= \
- float.h \
- iso646.h \
- limits.h \
- stdarg.h \
- stdbool.h \
- stddef.h \
- stdint.h \
- tgmath.h
+INCSDIR= /usr/include/clang-${CLANG_VERSION:R}
.PATH: ${LLVM_SRCDIR}/include/llvm/IR \
${CLANG_SRCDIR}/include/clang/AST \
@@ -137,8 +127,8 @@
clang/Basic/Version.inc: ${LLVM_TOPLEVEL}/Makefile.inc
mkdir -p ${.TARGET:H}
printf '#define CLANG_VERSION ${CLANG_VERSION}\n' > ${.TARGET}.tmp
- printf '#define CLANG_VERSION_MAJOR ${CLANG_VERSION:C,\.[0-9]*,,}\n' >> ${.TARGET}.tmp
- printf '#define CLANG_VERSION_MINOR ${CLANG_VERSION:C,[0-9]*\.,,}\n' >> ${.TARGET}.tmp
+ printf '#define CLANG_VERSION_MAJOR ${CLANG_VERSION:R:R}\n' >> ${.TARGET}.tmp
+ printf '#define CLANG_VERSION_MINOR ${CLANG_VERSION:R:E}\n' >> ${.TARGET}.tmp
mv ${.TARGET}.tmp ${.TARGET}
.ifndef HOST_BUILD
@@ -154,8 +144,8 @@
> ${.TARGET}.tmp
printf '#define LLVM_DEFAULT_TARGET_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp
printf '#define PACKAGE_VERSION "${LLVM_VERSION} (trunk ${LLVM_REVISION})"\n' >> ${.TARGET}.tmp
- printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:C,\.[0-9]*,,}\n' >> ${.TARGET}.tmp
- printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:C,[0-9]*\.,,}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:R:R}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:R:E}\n' >> ${.TARGET}.tmp
printf '#endif\n' >> ${.TARGET}.tmp
mv ${.TARGET}.tmp ${.TARGET}
@@ -166,8 +156,8 @@
< ${LLVM_TOPLEVEL}/config/llvm/Config/llvm-config.h.in \
> ${.TARGET}.tmp
printf '#define LLVM_DEFAULT_TARGET_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp
- printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:C,\.[0-9]*,,}\n' >> ${.TARGET}.tmp
- printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:C,[0-9]*\.,,}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:R:R}\n' >> ${.TARGET}.tmp
+ printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:R:E}\n' >> ${.TARGET}.tmp
printf '#endif\n' >> ${.TARGET}.tmp
mv ${.TARGET}.tmp ${.TARGET}
Home |
Main Index |
Thread Index |
Old Index