<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 20, 2019 at 7:29 PM Eric Christopher <<a href="mailto:echristo@gmail.com">echristo@gmail.com</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">Adding in aprantl here to make sure he's aware.<br>
<br>
Making sure I understand - you're building a compiler on machine a<br>
that llvm doesn't support code generation to and running the llvm<br>
tests on that platform?<br></blockquote><div>Yes, or rather the support is in-progress, but the host platform should be good for hosting a cross-compiling LLVM toolchain.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
That's probably a bit out of what any of us expected here as the<br>
typical one is to use build llvm on a platform that it already<br>
supports. I do agree that default target would also work here as a<br>
suitable test.<br>
<br>
-eric<br>
<br>
On Wed, Mar 20, 2019 at 3:47 PM Hubert Tong via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> The DWARF debug info unit tests in llvm/unittests/DebugInfo/DWARF/ forms a generator based on the host triple. This is problematic for cross-compile configurations where LLVM does not fully support code generation for the host platform.<br>
><br>
> I have found no rationale for why the host triple was chosen (ref: <a href="https://reviews.llvm.org/D27326?id=80002#inline-236026" rel="noreferrer" target="_blank">https://reviews.llvm.org/D27326?id=80002#inline-236026</a>).<br>
><br>
> I would imagine that it is more useful to test for the default target rather than the host.<br>
><br>
> -- HT<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="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>