[PATCH] D89282: [llvm] Export LLVM_USE_SPLIT_DWARF in LLVMConfig.cmake

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 12 16:47:22 PDT 2020


JDevlieghere created this revision.
JDevlieghere added a reviewer: aprantl.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.
JDevlieghere requested review of this revision.

Export LLVM_USE_SPLIT_DWARF in LLVMConfig.cmake so that it can be used from standalone builds of clang and lldb. Currently, there is no way for standalone builds to know whether this option was set which means that it only applies to LLVM.


https://reviews.llvm.org/D89282

Files:
  llvm/cmake/modules/LLVMConfig.cmake.in


Index: llvm/cmake/modules/LLVMConfig.cmake.in
===================================================================
--- llvm/cmake/modules/LLVMConfig.cmake.in
+++ llvm/cmake/modules/LLVMConfig.cmake.in
@@ -16,6 +16,8 @@
 set(LLVM_USE_CRT_RELEASE @LLVM_USE_CRT_RELEASE@)
 set(LLVM_USE_CRT_RELWITHDEBINFO @LLVM_USE_CRT_RELWITHDEBINFO@)
 
+set(LLVM_USE_SPLIT_DWARF @LLVM_USE_SPLIT_DWARF@)
+
 set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
 
 set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89282.297719.patch
Type: text/x-patch
Size: 484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201012/7d5d8abd/attachment.bin>


More information about the llvm-commits mailing list