aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2017-07-20 23:46:46 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2017-07-20 23:46:46 +0000
commit7f5a7a443da9bee41c3399f67e4482f1dbc7065c (patch)
tree84c87d3cd4296e71e9267c5548191cc0471aea56 /cmake/modules
parent18798ae3aa6893891ad5becda1bcf0c6e53d1501 (diff)
downloadllvm-7f5a7a443da9bee41c3399f67e4482f1dbc7065c.tar.gz
Generate a compile_commands.json DB for external projects.
compile_commands.json file is very useful both for tooling and for reproducible builds. For files generated from recursive CMake invocation this information was not previously generated. Differential Review: https://reviews.llvm.org/D35219 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/LLVMExternalProjectUtils.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/LLVMExternalProjectUtils.cmake b/cmake/modules/LLVMExternalProjectUtils.cmake
index c851eb8dbf0..c3560836f7e 100644
--- a/cmake/modules/LLVMExternalProjectUtils.cmake
+++ b/cmake/modules/LLVMExternalProjectUtils.cmake
@@ -149,6 +149,7 @@ function(llvm_ExternalProject_Add name source_dir)
-DPACKAGE_VERSION=${PACKAGE_VERSION}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
+ -DCMAKE_EXPORT_COMPILE_COMMANDS=1
${ARG_CMAKE_ARGS}
${PASSTHROUGH_VARIABLES}
INSTALL_COMMAND ""