summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-config/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/tools/llvm-config/CMakeLists.txt b/llvm/tools/llvm-config/CMakeLists.txt
index 1b74355a4209..aa5aa20257f9 100644
--- a/llvm/tools/llvm-config/CMakeLists.txt
+++ b/llvm/tools/llvm-config/CMakeLists.txt
@@ -6,6 +6,12 @@ set(BUILDVARIABLES_OBJPATH ${CMAKE_CURRENT_BINARY_DIR}/BuildVariables.inc)
# Add the llvm-config tool.
add_llvm_tool(llvm-config
llvm-config.cpp
+ # This utility doesn't use much of LLVM, so linking a shared library for the
+ # entire thing is overkill. Avoiding that especially saves on build time when cross
+ # compiling LLVM and building both cross and native `llvm-config`s. We don't
+ # want to build an entire native libLLVM.so in addition to the cross one just
+ # for the native `llvm-config`!
+ DISABLE_LLVM_LINK_LLVM_DYLIB
)
# Compute the substitution values for various items.