mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 03:55:49 +00:00
Add dummy compiler argument.
This commit is contained in:
parent
3e3bf885eb
commit
e03a3a8e7c
@ -348,6 +348,8 @@ std::vector<Project::Entry> 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));
|
||||
|
Loading…
Reference in New Issue
Block a user