[PATCH][LNT] Pass target to test-suites configure script

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 17:42:34 PST 2015


LGTM.

> On Nov 19, 2015, at 7:31 AM, Michael Daniels via llvm-commits <llvm-commits at lists.llvm.org> wrote:
> 
> Hello,
> 
> When lnt calls test-suite's configure script, it doesn't pass in a target option and will get configured for the host instead. If the host and target are not the same, then variables like TARGET_OS will not be what's expected, so you won't really be able to compare against them.
> 
> So if for example I ran lnt like this from a Linux host:
> 
> lnt runtest nt --sandbox ./sandbox --cc i386-pc-solaris2.11-clang --test-suite ./test-suite --remote --remote-port=22 --remote-host=target_board --remote-user=user
> 
> Then test-suite would end up with TARGET_OS=Linux in the Makefile's, instead of the expected SunOS.
> 
> I have attached a potential patch that I have been using locally to work around this.
> 
> Thanks,
> 
> Mike
> ---------------------------------------------------------------------
> This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
> <lnt_target.diff>_______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151119/032966cf/attachment-0001.html>


More information about the llvm-commits mailing list