[llvm] 119cd70 - [cmake] Include the llvm-locstats target when
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 02:45:06 PST 2019
Author: David Spickett
Date: 2019-12-19T10:44:34Z
New Revision: 119cd70322af15ae61f5bd3530cf85fb27891d9f
URL: https://github.com/llvm/llvm-project/commit/119cd70322af15ae61f5bd3530cf85fb27891d9f
DIFF: https://github.com/llvm/llvm-project/commit/119cd70322af15ae61f5bd3530cf85fb27891d9f.diff
LOG: [cmake] Include the llvm-locstats target when
utils and tools are not being built.
This was uncovered by: https://reviews.llvm.org/D71611
Which added llvm-locstats to the test dependencies.
Previously the build target was only added if you
were building tools. This meant that you couldn't
configure at all if you had LLVM_BUILD_TOOLS=OFF.
Differential revision: https://reviews.llvm.org/D71695
Added:
Modified:
llvm/utils/llvm-locstats/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/utils/llvm-locstats/CMakeLists.txt b/llvm/utils/llvm-locstats/CMakeLists.txt
index a919023e141e..d5366f99050f 100644
--- a/llvm/utils/llvm-locstats/CMakeLists.txt
+++ b/llvm/utils/llvm-locstats/CMakeLists.txt
@@ -1,4 +1,4 @@
-if (LLVM_BUILD_UTILS AND LLVM_BUILD_TOOLS)
+if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS)
add_custom_command(
OUTPUT ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats
DEPENDS ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py
More information about the llvm-commits
mailing list