kernel/tools/build/feature/test-clang.cpp
.. .. @@ -1,9 +1,15 @@ 1 1 // SPDX-License-Identifier: GPL-2.0 2 +#include "clang/Basic/Version.h"3 +#if CLANG_VERSION_MAJOR < 82 4 #include "clang/Basic/VirtualFileSystem.h" 5 +#endif3 6 #include "clang/Driver/Driver.h" 4 7 #include "clang/Frontend/TextDiagnosticPrinter.h" 5 8 #include "llvm/ADT/IntrusiveRefCntPtr.h" 6 9 #include "llvm/Support/ManagedStatic.h" 10 +#if CLANG_VERSION_MAJOR >= 811 +#include "llvm/Support/VirtualFileSystem.h"12 +#endif7 13 #include "llvm/Support/raw_ostream.h" 8 14 9 15 using namespace clang;