[PATCH] D142610: [CMake] Support undefined LLVM_NATIVE_ARCH in llvm_map_components_to_libnames().
Ivan Kosarev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 26 02:38:13 PST 2023
kosarev created this revision.
kosarev added reviewers: beanz, aaronpuchert.
Herald added a project: All.
kosarev requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
https://reviews.llvm.org/D142405 made this function relying on the
LLVM_NATIVE_ARCH be defined, which is not necessarily the case for
third-party projects that include LLVM as their part.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142610
Files:
llvm/cmake/modules/LLVM-Config.cmake
Index: llvm/cmake/modules/LLVM-Config.cmake
===================================================================
--- llvm/cmake/modules/LLVM-Config.cmake
+++ llvm/cmake/modules/LLVM-Config.cmake
@@ -236,7 +236,7 @@
list(APPEND link_components "interpreter")
endif()
endif()
- if(native IN_LIST link_components AND ${LLVM_NATIVE_ARCH} IN_LIST LLVM_TARGETS_TO_BUILD)
+ if(native IN_LIST link_components AND "${LLVM_NATIVE_ARCH}" IN_LIST LLVM_TARGETS_TO_BUILD)
list(APPEND link_components ${LLVM_NATIVE_ARCH})
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142610.492365.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230126/6d894567/attachment.bin>
More information about the llvm-commits
mailing list