Skip to content

Commit 2e31530

Browse files
committed
[CMake] Support undefined LLVM_NATIVE_ARCH in llvm_map_components_to_libnames().
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. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D142610
1 parent 4a9a962 commit 2e31530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/modules/LLVM-Config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function(llvm_map_components_to_libnames out_libs)
236236
list(APPEND link_components "interpreter")
237237
endif()
238238
endif()
239-
if(native IN_LIST link_components AND ${LLVM_NATIVE_ARCH} IN_LIST LLVM_TARGETS_TO_BUILD)
239+
if(native IN_LIST link_components AND "${LLVM_NATIVE_ARCH}" IN_LIST LLVM_TARGETS_TO_BUILD)
240240
list(APPEND link_components ${LLVM_NATIVE_ARCH})
241241
endif()
242242

0 commit comments

Comments
 (0)