[Bug 239682] Default to devel/llvm90 when libLLVM/libclang are required or if /usr/bin/clang is not enough

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Aug 11 05:11:45 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239682

Henry Hu <henry.hu.sh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|maintainer-feedback?(henry. |maintainer-feedback+
                   |hu.sh at gmail.com)            |

--- Comment #13 from Henry Hu <henry.hu.sh at gmail.com> ---
I tested cquery with newer version of LLVM, and "cquery --test-unit" and
"cquery --check <sample c++ file>" seem to work fine. We can make it use the
default LLVM version with this patch:

diff --git a/devel/cquery/Makefile b/devel/cquery/Makefile
index 4ebab81..a91ea4a 100644
--- a/devel/cquery/Makefile
+++ b/devel/cquery/Makefile
@@ -12,8 +12,8 @@ LICENSE=      MIT

 BROKEN_powerpc64=      fails to build: Checking for 'clang++' (C++ compiler):
not found

-BUILD_DEPENDS= llvm-config60:devel/llvm60
-LIB_DEPENDS=   libclang.so:devel/llvm60
+BUILD_DEPENDS= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
+LIB_DEPENDS=   libclang.so:devel/llvm${LLVM_DEFAULT}

 USES=          compiler:c++14-lang waf

@@ -28,7 +28,7 @@ GH_TUPLE=    
miloyip:rapidjson:daabb88:rapidjson/third_party/rapidjson \

 PLIST_FILES=   bin/cquery

-CONFIGURE_ARGS=        --variant=system
--llvm-config=${LOCALBASE}/bin/llvm-config60
+CONFIGURE_ARGS=        --variant=system
--llvm-config=${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT}
 MAKE_ARGS=     --variant=system

 post-install:

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-x11 mailing list