<div dir="ltr"><div>In order to catch a missing "REQUIRES: x86", it might be a good idea to set up a build bot without the x86 support.<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 4, 2018 at 8:53 AM Peter Smith 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">Hello Joel,<br>
<br>
I don't think that there is a cunning plan with REQUIRES. I seem to<br>
remember that there was some debate over the testing strategy and<br>
platforms, but unfortunately I can't quickly find a link to it. In<br>
summary:<br>
- Much of the functionality of LLD is target independent, for example<br>
linker script support.<br>
- To write a test needs us to pick a target for these types of test<br>
and X86 was chosen as this was the most likely target to be compiled<br>
into build machines, for example the Arm and AArch64 buildbots include<br>
the X86 backend.<br>
<br>
I think that the missing 117 "REQUIRES" are an oversight, or<br>
historical artefact, and I think patches would be welcome to add them<br>
back in; a bot that doesn't build in the X86 backend is probably<br>
needed to keep this maintained as it is easy to forget the REQUIRES.<br>
However I think that if the goal is to test the majority of the<br>
functionality of LLD it would be wise to compile in support for X86 as<br>
much of the generic functionality will go untested.<br>
<br>
Peter<br>
<br>
On 4 June 2018 at 15:49, Joel Jones via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
> If I build lld without x86 support (i.e. with "cmake -DLLVM_TARGETS_TO_BUILD=AArch64”) there are 117 tests that fail “make check-lld”. Upon examination, all are x86 related.<br>
><br>
> There are multiple (884) tests that have “REQUIRES:.*x86” in the tests directory. Was there a cunning plan regarding the use of REQUIRES that I couldn’t discern?<br>
><br>
> It seems that either 117 “REQUIRES” need to be added or 884 need to be removed.<br>
><br>
> Joel Jones<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>
_______________________________________________<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>