This commit is contained in:
Fangrui Song 2018-01-15 17:38:28 -08:00
parent 22aa939d3d
commit 98fb9ee821

View File

@ -479,9 +479,11 @@ Project::Entry Project::FindCompilationEntryForFile(
Project::Entry result;
result.is_inferred = true;
result.filename = filename;
if (!best_entry)
if (!best_entry) {
// FIXME
result.args.push_back("clang++");
result.args.push_back(filename);
else {
} else {
result.args = best_entry->args;
// |best_entry| probably has its own path in the arguments. We need to remap