<div dir="ltr">Hi Laurent,<div> Check out this <a href="https://github.com/peter-can-talk/cppnow-2017">repository</a> by Peter Goldsborough where he used docker to build clang tools.</div><div><br></div><div>Regards,</div><div>Pradeep</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 14, 2019 at 2:45 PM Andrzej Warzynski via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Laurent,<br>
<br>
Have you tried the pre-build packages for Ubuntu or Darwin? I'm using <br>
them for my out-of-tree tutorial:<br>
<br>
<a href="https://github.com/banach-space/llvm-tutor" rel="noreferrer" target="_blank">https://github.com/banach-space/llvm-tutor</a><br>
<br>
I'm not using LibTooling and LibASTMatchers myself, but from what I can <br>
see they are shipped in Homebrew packages for LLVM 9:<br>
<br>
brew install llvm@9<br>
<br>
I haven't checked on Ubuntu. This is how you can install the packages <br>
there (for Ubuntu Bionic):<br>
<br>
wget -O - <a href="https://apt.llvm.org/llvm-snapshot.gpg.key" rel="noreferrer" target="_blank">https://apt.llvm.org/llvm-snapshot.gpg.key</a> | sudo apt-key add -<br>
sudo apt-add-repository "deb <a href="http://apt.llvm.org/bionic/" rel="noreferrer" target="_blank">http://apt.llvm.org/bionic/</a> <br>
llvm-toolchain-bionic-9.0 main" sudo apt-get update<br>
sudo apt-get install -y llvm-9 llvm-9-dev llvm-9-tools clang-9<br>
<br>
In the past I hit similar issue - not being able to build LLVM in <br>
Travis-CI. Fortunately for me, the packages for Ubuntu and Darwin worked <br>
fine. Windows is a bit trickier. Speaking of building LLVM using free CI <br>
systems, I am yet to try <a href="https://drone.io/" rel="noreferrer" target="_blank">https://drone.io/</a>.<br>
<br>
-Andrzej<br>
<br>
On 12/11/2019 19:17, Laurent Thévenoux via cfe-dev wrote:<br>
> Hi,<br>
> <br>
> I’m trying to develop a clang-tool, following such kind of tutorial : <br>
> <a href="https://clang.llvm.org/docs/LibASTMatchersTutorial.html" rel="noreferrer" target="_blank">https://clang.llvm.org/docs/LibASTMatchersTutorial.html</a>.<br>
> <br>
> I’m using GitHub with Travis-CI and I can’t build clang/llvm on Travis <br>
> because of the free-plan constraints. I’m wondering if it is possible to <br>
> build such a tool without having to build clang/llvm, i.e., is there a <br>
> way to simply install clang (from any package manager) with its <br>
> LibTooling and LibASTMatchers, to which I could link my tool with?<br>
> <br>
> Regards,<br>
> Laurent<br>
> <br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
> <br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>