From 6f6cd4ea7f7c3d83aba5d9bc66d01fbed9ea0f31 Mon Sep 17 00:00:00 2001 From: Peter Elmers Date: Fri, 17 Nov 2017 15:38:56 -0800 Subject: [PATCH] Give default value to compileCommandsDirectory --- src/command_line.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/command_line.cc b/src/command_line.cc index 3fa37561..f006e1cd 100644 --- a/src/command_line.cc +++ b/src/command_line.cc @@ -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);