From 0fd5a16f7808643b021a0dfaa70535aacefe1c78 Mon Sep 17 00:00:00 2001 From: Philippe Virouleau <philippe.virouleau@imag.fr> Date: Tue, 10 May 2016 11:21:16 +0200 Subject: [PATCH] Update the patchlevel for builtin macro. --- lib/Frontend/InitPreprocessor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp index 6b93c697d9b..1e71b20f473 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/lib/Frontend/InitPreprocessor.cpp @@ -512,7 +512,10 @@ static void InitializePredefinedMacros(const TargetInfo &TI, Builder.defineMacro("__clang_major__", TOSTR(CLANG_VERSION_MAJOR)); Builder.defineMacro("__clang_minor__", TOSTR(CLANG_VERSION_MINOR)); #ifdef CLANG_VERSION_PATCHLEVEL - Builder.defineMacro("__clang_patchlevel__", TOSTR(CLANG_VERSION_PATCHLEVEL)); + // Builder.defineMacro("__clang_patchlevel__", TOSTR(CLANG_VERSION_PATCHLEVEL)); + // Dirty, we want cmake to use the original patchlevel (for install), + // but we want the programmer to know there is some extensions + Builder.defineMacro("__clang_patchlevel__", "1"); #else Builder.defineMacro("__clang_patchlevel__", "0"); #endif -- GitLab