[PATCH] D38875: Fix the incorrect detection of ICONV_LIBRARY_PATH

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 12 23:01:55 PDT 2017


skatkov created this revision.
Herald added a subscriber: mgorny.

This is introduced in https://reviews.llvm.org/rL308711.
Check for c library is incorrect here just because libc will be found always
and it does not mean that iconv is presented.

Thank to Andrew Krasny for narrowing down the root cause.


https://reviews.llvm.org/D38875

Files:
  cmake/config-ix.cmake


Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -157,7 +157,7 @@
     set(HAVE_TERMINFO 0)
   endif()
 
-  find_library(ICONV_LIBRARY_PATH NAMES iconv libiconv libiconv-2 c)
+  find_library(ICONV_LIBRARY_PATH NAMES iconv libiconv libiconv-2)
   set(LLVM_LIBXML2_ENABLED 0)
   set(LIBXML2_FOUND 0)
   if((LLVM_ENABLE_LIBXML2) AND (CMAKE_SYSTEM_NAME MATCHES "Linux") AND (ICONV_LIBRARY_PATH))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38875.118886.patch
Type: text/x-patch
Size: 495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171013/af78a7b2/attachment.bin>


More information about the llvm-commits mailing list