* [PATCH] tools build: Fix test-clang.cpp with Clang 8+
@ 2019-12-28 17:13 Maciej S. Szmigiero
2020-01-06 22:15 ` Arnaldo Carvalho de Melo
2020-01-20 8:27 ` [tip: perf/core] " tip-bot2 for Maciej S. Szmigiero
0 siblings, 2 replies; 3+ messages in thread
From: Maciej S. Szmigiero @ 2019-12-28 17:13 UTC (permalink / raw)
To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo
Cc: Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
Dennis Schridde, Denis Pronin, Naohiro Aota, clang-built-linux,
linux-kernel
LLVM rL344140 (included in Clang 8+) moved VFS from Clang to LLVM, so paths
to its include files have changed.
This broke the Clang test in tools/build - let's fix it.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
---
tools/build/feature/test-clang.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/build/feature/test-clang.cpp b/tools/build/feature/test-clang.cpp
index a2b3f092d2f0..7d87075cd1c5 100644
--- a/tools/build/feature/test-clang.cpp
+++ b/tools/build/feature/test-clang.cpp
@@ -1,9 +1,15 @@
// SPDX-License-Identifier: GPL-2.0
+#include "clang/Basic/Version.h"
+#if CLANG_VERSION_MAJOR < 8
#include "clang/Basic/VirtualFileSystem.h"
+#endif
#include "clang/Driver/Driver.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/Support/ManagedStatic.h"
+#if CLANG_VERSION_MAJOR >= 8
+#include "llvm/Support/VirtualFileSystem.h"
+#endif
#include "llvm/Support/raw_ostream.h"
using namespace clang;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tools build: Fix test-clang.cpp with Clang 8+
2019-12-28 17:13 [PATCH] tools build: Fix test-clang.cpp with Clang 8+ Maciej S. Szmigiero
@ 2020-01-06 22:15 ` Arnaldo Carvalho de Melo
2020-01-20 8:27 ` [tip: perf/core] " tip-bot2 for Maciej S. Szmigiero
1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2020-01-06 22:15 UTC (permalink / raw)
To: Maciej S. Szmigiero
Cc: Peter Zijlstra, Ingo Molnar, Mark Rutland, Alexander Shishkin,
Jiri Olsa, Namhyung Kim, Dennis Schridde, Denis Pronin,
Naohiro Aota, clang-built-linux, linux-kernel
Em Sat, Dec 28, 2019 at 06:13:13PM +0100, Maciej S. Szmigiero escreveu:
> LLVM rL344140 (included in Clang 8+) moved VFS from Clang to LLVM, so paths
> to its include files have changed.
> This broke the Clang test in tools/build - let's fix it.
Thanks, applied.
- Arnaldo
> Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
> ---
> tools/build/feature/test-clang.cpp | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tools/build/feature/test-clang.cpp b/tools/build/feature/test-clang.cpp
> index a2b3f092d2f0..7d87075cd1c5 100644
> --- a/tools/build/feature/test-clang.cpp
> +++ b/tools/build/feature/test-clang.cpp
> @@ -1,9 +1,15 @@
> // SPDX-License-Identifier: GPL-2.0
> +#include "clang/Basic/Version.h"
> +#if CLANG_VERSION_MAJOR < 8
> #include "clang/Basic/VirtualFileSystem.h"
> +#endif
> #include "clang/Driver/Driver.h"
> #include "clang/Frontend/TextDiagnosticPrinter.h"
> #include "llvm/ADT/IntrusiveRefCntPtr.h"
> #include "llvm/Support/ManagedStatic.h"
> +#if CLANG_VERSION_MAJOR >= 8
> +#include "llvm/Support/VirtualFileSystem.h"
> +#endif
> #include "llvm/Support/raw_ostream.h"
>
> using namespace clang;
--
- Arnaldo
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip: perf/core] tools build: Fix test-clang.cpp with Clang 8+
2019-12-28 17:13 [PATCH] tools build: Fix test-clang.cpp with Clang 8+ Maciej S. Szmigiero
2020-01-06 22:15 ` Arnaldo Carvalho de Melo
@ 2020-01-20 8:27 ` tip-bot2 for Maciej S. Szmigiero
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Maciej S. Szmigiero @ 2020-01-20 8:27 UTC (permalink / raw)
To: linux-tip-commits
Cc: Maciej S. Szmigiero, Alexander Shishkin, Denis Pronin,
Dennis Schridde, Jiri Olsa, Mark Rutland, Namhyung Kim,
Naohiro Aota, Peter Zijlstra, clang-built-linux,
Arnaldo Carvalho de Melo, x86, LKML
The following commit has been merged into the perf/core branch of tip:
Commit-ID: d8007772a5541b4711d1286b788ad4295b2c7eaa
Gitweb: https://git.kernel.org/tip/d8007772a5541b4711d1286b788ad4295b2c7eaa
Author: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
AuthorDate: Sat, 28 Dec 2019 18:13:13 +01:00
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitterDate: Tue, 14 Jan 2020 12:02:19 -03:00
tools build: Fix test-clang.cpp with Clang 8+
LLVM rL344140 (included in Clang 8+) moved VFS from Clang to LLVM, so
paths to its include files have changed.
This broke the Clang test in tools/build - let's fix it.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Denis Pronin <dannftk@yandex.ru>
Cc: Dennis Schridde <devurandom@gmx.net>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Naohiro Aota <naota@elisp.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: clang-built-linux@googlegroups.com
Link: http://lore.kernel.org/lkml/20191228171314.946469-1-mail@maciej.szmigiero.name
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/build/feature/test-clang.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/build/feature/test-clang.cpp b/tools/build/feature/test-clang.cpp
index a2b3f09..7d87075 100644
--- a/tools/build/feature/test-clang.cpp
+++ b/tools/build/feature/test-clang.cpp
@@ -1,9 +1,15 @@
// SPDX-License-Identifier: GPL-2.0
+#include "clang/Basic/Version.h"
+#if CLANG_VERSION_MAJOR < 8
#include "clang/Basic/VirtualFileSystem.h"
+#endif
#include "clang/Driver/Driver.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/Support/ManagedStatic.h"
+#if CLANG_VERSION_MAJOR >= 8
+#include "llvm/Support/VirtualFileSystem.h"
+#endif
#include "llvm/Support/raw_ostream.h"
using namespace clang;
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-20 8:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-28 17:13 [PATCH] tools build: Fix test-clang.cpp with Clang 8+ Maciej S. Szmigiero
2020-01-06 22:15 ` Arnaldo Carvalho de Melo
2020-01-20 8:27 ` [tip: perf/core] " tip-bot2 for Maciej S. Szmigiero
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox