aboutsummaryrefslogtreecommitdiff
path: root/backend/ninja
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ninja')
-rw-r--r--backend/ninja/Ninja.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index 3a2fa0f..f236210 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -1845,9 +1845,9 @@ namespace backend
bool isCompdbAvailable = (compdbAvailableResult && compdbAvailableResult.unwrap().exitCode == 0);
FileString command = TINYDIR_STRING("ninja -C \"");
- command += (isCompdbAvailable ? buildFilePath : saveDir);
- command += TINYDIR_STRING("\" -t compdb compile_c compile_cpp compile_zig > \"");
command += buildFilePath;
+ command += TINYDIR_STRING("\" -t compdb compile_c compile_cpp > \"");
+ command += (isCompdbAvailable ? buildFilePath : saveDir);
command += TINYDIR_STRING("/compile_commands.json\"");
Result<ExecResult> execResult = exec(command.c_str(), false);
if(execResult)