소스 검색

fix the detection method of `GNU iconv` (#4708)

* fix the detection method of `GNU iconv`

* revert the use of `detect:has_*`, and add `linux clang` support for GNU iconv
zjyhjqs 1 년 전
부모
커밋
5304191c14
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/l/libiconv/xmake.lua

+ 2 - 2
packages/l/libiconv/xmake.lua

@@ -19,8 +19,8 @@ package("libiconv")
 
     on_fetch("macosx", "linux", function (package, opt)
         if opt.system then
-            if package:is_plat("linux") and package:has_tool("cc", "gcc", "gxx") then
-                return {} -- on linux libiconv is already a part of glibc
+            if package:is_plat("linux") and package:has_tool("cc", "gcc", "gxx", "clang", "clangxx") then
+                return {} -- libiconv is already a part of glibc (GNU iconv)
             else
                 return package:find_package("system::iconv", {includes = "iconv.h"})
             end