From 5e79e361c97e88b4a5912990eda0f1fb0d4a6dbd Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 13 Oct 2018 00:09:22 +0200 Subject: Add posix as a platform, remove zig from compile_commands.json --- backend/ninja/Ninja.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend') 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 = exec(command.c_str(), false); if(execResult) -- cgit v1.2.3