hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/tools/build/feature/test-clang.cpp
....@@ -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;