[PATCH] D92158: Also include component groups in llvm-config --components list

Mariusz Ceier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 01:03:28 PST 2020


mceier updated this revision to Diff 307782.
mceier added a comment.

Renamed llvm_target_to_build to llvm_component


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92158/new/

https://reviews.llvm.org/D92158

Files:
  llvm/cmake/modules/LLVM-Build.cmake


Index: llvm/cmake/modules/LLVM-Build.cmake
===================================================================
--- llvm/cmake/modules/LLVM-Build.cmake
+++ llvm/cmake/modules/LLVM-Build.cmake
@@ -11,12 +11,9 @@
     list(APPEND all_component_libdeps ${component_name})
   endforeach()
   list(APPEND llvmbuild_components all)
-  list(APPEND llvmbuild_components all-targets)
-  list(APPEND llvmbuild_components Engine)
-  list(APPEND llvmbuild_components Native)
-  list(APPEND llvmbuild_components NativeCodeGen)
-  foreach(llvm_target_to_build ${LLVM_TARGETS_TO_BUILD})
-    list(APPEND llvmbuild_components ${llvm_target_to_build})
+  foreach(llvm_component all-targets Engine Native NativeCodeGen ${LLVM_TARGETS_TO_BUILD})
+    list(APPEND llvmbuild_components ${llvm_component})
+    list(APPEND all_component_libdeps ${llvm_component})
   endforeach()
 
   list(LENGTH llvmbuild_components llvmbuild_components_size)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92158.307782.patch
Type: text/x-patch
Size: 922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201126/580b99b8/attachment.bin>


More information about the llvm-commits mailing list