Skip to content

Commit d800777

Browse files
maciejsszmigieroacmel
authored andcommitted
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 <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Denis Pronin <[email protected]> Cc: Dennis Schridde <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Naohiro Aota <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 411c0ec commit d800777

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/build/feature/test-clang.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
// SPDX-License-Identifier: GPL-2.0
2+
#include "clang/Basic/Version.h"
3+
#if CLANG_VERSION_MAJOR < 8
24
#include "clang/Basic/VirtualFileSystem.h"
5+
#endif
36
#include "clang/Driver/Driver.h"
47
#include "clang/Frontend/TextDiagnosticPrinter.h"
58
#include "llvm/ADT/IntrusiveRefCntPtr.h"
69
#include "llvm/Support/ManagedStatic.h"
10+
#if CLANG_VERSION_MAJOR >= 8
11+
#include "llvm/Support/VirtualFileSystem.h"
12+
#endif
713
#include "llvm/Support/raw_ostream.h"
814

915
using namespace clang;

0 commit comments

Comments
 (0)