<div dir="ltr">I've been regularly building llvm+clang with -DLLVM_TARGETS_TO_BUILD='' but a non-empty LLVM_EXPERIMENTAL_TARGETS_TO_BUILD.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 19, 2018 at 11:08 PM, Justin Bogner via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">John Paul Adrian Glaubitz via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> writes:<br>
> Hi!<br>
><br>
> In Debian, we have recently run into the situation that the package<br>
> qttools-opensource-src has added LLVM's clang parser as a build dependency<br>
> with the effect that the package can no longer be built for a couple of<br>
> architectures like alpha or ia64 [1].<br>
><br>
> From my current understanding, qttools-opensource-src is merely using the<br>
> parser part in clang to parse C/C++ code for code analysis which is not<br>
> necessarily an architecture-specific task.<br>
<br>
</span>Building llvm without any backends is supposed to work (and has in the<br>
past!), but it appears to fail quite a few tests currently. You can try<br>
this by calling cmake with -DLLVM_TARGETS_TO_BUILD=''. I don't know if<br>
clang works in that configuration, especially given David's point about<br>
inline assembly.<br>
<span class="im HOEnZb"><br>
> Now, does anyone know whether it would be possible to enable this feature<br>
> on any given architecture without having to add a full target backend to<br>
> LLVM? Maybe we could just build an LLVM variant on unsupported targets<br>
> with the x86 backend enabled (in case it's mandatory to have at least<br>
> one backend enabled).<br>
><br>
> Thanks,<br>
> Adrian<br>
><br>
>> [1]<br>
> <a href="https://buildd.debian.org/status/package.php?p=qttools-opensource-src&suite=sid" rel="noreferrer" target="_blank">https://buildd.debian.org/<wbr>status/package.php?p=qttools-<wbr>opensource-src&suite=sid</a><br>
</span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</div></div></blockquote></div><br></div>