From e03a3a8e7c0cb53bbe9975837ecd26294a59c418 Mon Sep 17 00:00:00 2001 From: Chao Shen Date: Fri, 23 Feb 2018 18:43:15 +0800 Subject: [PATCH] Add dummy compiler argument. --- src/project.cc | 2 ++ 1 file changed, 2 insertions(+) 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));