aboutsummaryrefslogtreecommitdiff
path: root/lib/clang
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-09-06 20:38:25 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-09-06 20:38:25 +0000
commitfb3a446a37435ab14427e27dc1a11eebb210b356 (patch)
tree793795c03c6a828e25d0af01ead2f4182774cb9b /lib/clang
parent324de7d4e2e2c6800e5297413d93772d7431eba4 (diff)
downloadsrc-fb3a446a37435ab14427e27dc1a11eebb210b356.tar.gz
src-fb3a446a37435ab14427e27dc1a11eebb210b356.zip
Add a VCSVersion.inc header with revision and repository defines,
similar to what upstream generates via CMake. Though for us it is handier to have everything in one file.
Notes
Notes: svn path=/projects/clang900-import/; revision=351965
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/include/VCSVersion.inc14
-rw-r--r--lib/clang/include/lld/Common/Version.inc4
-rw-r--r--lib/clang/llvm.build.mk1
3 files changed, 15 insertions, 4 deletions
diff --git a/lib/clang/include/VCSVersion.inc b/lib/clang/include/VCSVersion.inc
new file mode 100644
index 000000000000..a82f68afb685
--- /dev/null
+++ b/lib/clang/include/VCSVersion.inc
@@ -0,0 +1,14 @@
+// $FreeBSD$
+
+#define LLVM_REVISION "370514"
+#define LLVM_REPOSITORY "https://llvm.org/svn/llvm-project/llvm/branches/release_90"
+
+#define CLANG_REVISION "370514"
+#define CLANG_REPOSITORY "https://llvm.org/svn/llvm-project/cfe/branches/release_90"
+
+// <Upstream revision at import>-<Local identifier in __FreeBSD_version style>
+#define LLD_REVISION "370514-1300004"
+#define LLD_REPOSITORY "FreeBSD"
+
+#define LLDB_REVISION "370514"
+#define LLDB_REPOSITORY "https://llvm.org/svn/llvm-project/lldb/branches/release_90"
diff --git a/lib/clang/include/lld/Common/Version.inc b/lib/clang/include/lld/Common/Version.inc
index d39009a42a33..ccc9037657d0 100644
--- a/lib/clang/include/lld/Common/Version.inc
+++ b/lib/clang/include/lld/Common/Version.inc
@@ -4,7 +4,3 @@
#define LLD_VERSION_STRING "9.0.0"
#define LLD_VERSION_MAJOR 9
#define LLD_VERSION_MINOR 0
-
-// <Upstream revision at import>-<Local identifier in __FreeBSD_version style>
-#define LLD_REVISION "370514-1300004"
-#define LLD_REPOSITORY "FreeBSD"
diff --git a/lib/clang/llvm.build.mk b/lib/clang/llvm.build.mk
index 52ba285d8f25..726ccd184217 100644
--- a/lib/clang/llvm.build.mk
+++ b/lib/clang/llvm.build.mk
@@ -17,6 +17,7 @@ CFLAGS+= -I${LLVM_SRCS}/include
CFLAGS+= -D__STDC_CONSTANT_MACROS
CFLAGS+= -D__STDC_FORMAT_MACROS
CFLAGS+= -D__STDC_LIMIT_MACROS
+CFLAGS+= -DHAVE_VCS_VERSION_INC
#CFLAGS+= -DNDEBUG
TARGET_ARCH?= ${MACHINE_ARCH}