[llvm-commits] [patch] Mark lit tests as unsupported when cross compiling

Rafael Espindola espindola at google.com
Sun Jan 24 10:49:11 PST 2010


When I build llvm itself with --target=arm-none-linux-gnueabi, lli
will be build to only support arm and thumb:

----------------------------------------------
$ ./Debug/bin/lli  -version
Low Level Virtual Machine (http://llvm.org/):
  llvm version 2.7svn
  DEBUG build with assertions.
  Built Jan 24 2010 (12:50:43).
  Host: x86_64-unknown-linux-gnu
  Host CPU: i686

  Registered Targets:
    arm   - ARM
    thumb - Thumb
---------------------------------------

I am not sure if that is a bug or not. Assuming it is the correct
behavior, we should at least mark the tests as unsupported. Otherwise
all of them will fail:

--------------------------------------------------------------
$ ./Debug/bin/lli test/ExecutionEngine/Output/2003-01-04-ArgumentBug.ll.tmp.bc
./Debug/bin/lli: error creating EE: No available targets are
compatible with this triple, see -version for the available targets.
------------------------------------------------------------

The attached patch does just that.  The use of HOST is a hack to avoid
having to change the assumption that every test function take an
argument.

Let me know if I should try to change the lli build to support the
host instead of the target.

Cheers,
-- 
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lit.patch
Type: text/x-diff
Size: 1454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100124/eae446b6/attachment.patch>


More information about the llvm-commits mailing list