Skip to content

Commit e03a3a8

Browse files
scturtlejacobdufault
authored andcommitted
Add dummy compiler argument.
1 parent 3e3bf88 commit e03a3a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/project.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ std::vector<Project::Entry> LoadFromDirectoryListing(Config* init_opts,
348348
e.directory = config->project_dir;
349349
e.file = file;
350350
e.args = GetCompilerArgumentForFile(file);
351+
if (e.args.empty())
352+
e.args.push_back("%clang"); // Add a Dummy.
351353
e.args.push_back(e.file);
352354
result.push_back(
353355
GetCompilationEntryFromCompileCommandEntry(init_opts, config, e));

0 commit comments

Comments
 (0)