From 9a90b44b17ef8ab4a2929c3a607c33f3fde0a625 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 17 Jan 2022 21:08:34 -0800 Subject: [PATCH] project: Expand response files --- src/project.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/project.cc b/src/project.cc index c02bd6b6..d767231d 100644 --- a/src/project.cc +++ b/src/project.cc @@ -415,6 +415,9 @@ void Project::loadDirectory(const std::string &root, Project::Folder &folder) { rmdir(cdbDir.c_str()); #endif } +#if LLVM_VERSION_MAJOR >= 10 + cdb = tooling::expandResponseFiles(std::move(cdb), vfs::getRealFileSystem()); +#endif ProjectProcessor proc(folder); StringSet<> seen;