mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Give default value to compileCommandsDirectory
This commit is contained in:
parent
b7059e69d7
commit
6f6cd4ea7f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user