You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2021/11/08 13:58:22 UTC

[incubator-doris] 04/11: [Build] Generate compile_command.json (#6976)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-0.15
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git

commit 0faff631a12a3c24a2151e851a403ed7b214b47c
Author: flynn <fe...@mails.ucas.ac.cn>
AuthorDate: Tue Nov 2 16:36:35 2021 +0800

    [Build]  Generate compile_command.json (#6976)
    
    Set cmake to generate compile_commands.json, which is useful for lsp like clangd, cquery, et.
---
 be/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt
index d8ac46d..9c3631c 100644
--- a/be/CMakeLists.txt
+++ b/be/CMakeLists.txt
@@ -28,6 +28,8 @@ endif()
 
 project(doris CXX C)
 
+# Write compile_commands.json
+set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
 # set platforms
 
 if (CMAKE_SYSTEM_PROCESSOR MATCHES "amd64|x86_64")

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org