Backends are necessary for parsing because clang parses inline assembly using the llvm integrated assembles, if I recall correctly<br><br><div class="gmail_quote"><div dir="ltr">On Sun., 19 Aug. 2018, 7:30 am John Paul Adrian Glaubitz via llvm-dev, <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
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] <a href="https://buildd.debian.org/status/package.php?p=qttools-opensource-src&suite=sid" rel="noreferrer" target="_blank">https://buildd.debian.org/status/package.php?p=qttools-opensource-src&suite=sid</a><br>
<br>
-- <br>
 .''`.  John Paul Adrian Glaubitz<br>
: :' :  Debian Developer - <a href="mailto:glaubitz@debian.org" target="_blank">glaubitz@debian.org</a><br>
`. `'   Freie Universitaet Berlin - <a href="mailto:glaubitz@physik.fu-berlin.de" target="_blank">glaubitz@physik.fu-berlin.de</a><br>
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">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/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>