diff --git a/src/project.cc b/src/project.cc index de263054..a3576efb 100644 --- a/src/project.cc +++ b/src/project.cc @@ -348,6 +348,8 @@ std::vector LoadFromDirectoryListing(Config* init_opts, e.directory = config->project_dir; e.file = file; e.args = GetCompilerArgumentForFile(file); + if (e.args.empty()) + e.args.push_back("%clang"); // Add a Dummy. e.args.push_back(e.file); result.push_back( GetCompilationEntryFromCompileCommandEntry(init_opts, config, e));