Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Aug 2019 05:11:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   [Bug 239682] Default to devel/llvm90 when libLLVM/libclang are required or if /usr/bin/clang is not enough
Message-ID:  <bug-239682-21738-utal71R9ip@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239682-21738@https.bugs.freebsd.org/bugzilla/>
References:  <bug-239682-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239682

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

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

--- Comment #13 from Henry Hu <henry.hu.sh@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=3D      MIT

 BROKEN_powerpc64=3D      fails to build: Checking for 'clang++' (C++ compi=
ler):
not found

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

 USES=3D          compiler:c++14-lang waf

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

 PLIST_FILES=3D   bin/cquery

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

 post-install:

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239682-21738-utal71R9ip>