Give default value to compileCommandsDirectory

This commit is contained in:
Peter Elmers 2017-11-17 15:38:56 -08:00 committed by Jacob Dufault
parent b7059e69d7
commit 6f6cd4ea7f

View File

@ -1464,8 +1464,7 @@ bool QueryDbMainLoop(Config* config,
}
// Make sure compile commands directory is valid.
if (config->compileCommandsDirectory.empty()) {
LOG_S(ERROR) << "No compile commands directory";
exit(1);
config->compileCommandsDirectory = project_path;
}
config->cacheDirectory = NormalizePath(config->cacheDirectory);