X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=CMakeLists.txt;h=3d2093fde6346ce95c0b9391a7ba0e8a7a6b7ad9;hb=bf6a00569e32764e4ffdc42db2d69abfeac9d934;hp=c4ff8f3cd28bdb02ab20aa4ecf2efe79b460c485;hpb=0123bc6beac1ca9a06450e98d8e829d32ce52498;p=oota-llvm.git diff --git a/CMakeLists.txt b/CMakeLists.txt index c4ff8f3cd28..3d2093fde63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,10 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ) +# Generate a CompilationDatabase (compile_commands.json file) for our build, +# for use by clang_complete, YouCompleteMe, etc. +set(CMAKE_EXPORT_COMPILE_COMMANDS 1) + option(LLVM_INSTALL_UTILS "Include utility binaries in the 'install' target." OFF) option(LLVM_INSTALL_TOOLCHAIN_ONLY "Only include toolchain files in the 'install' target." OFF)