mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 21:58: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.
|
// Make sure compile commands directory is valid.
|
||||||
if (config->compileCommandsDirectory.empty()) {
|
if (config->compileCommandsDirectory.empty()) {
|
||||||
LOG_S(ERROR) << "No compile commands directory";
|
config->compileCommandsDirectory = project_path;
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
config->cacheDirectory = NormalizePath(config->cacheDirectory);
|
config->cacheDirectory = NormalizePath(config->cacheDirectory);
|
||||||
|
Loading…
Reference in New Issue
Block a user