[PATCH] D12506: Distinguish "native" from "native-arch" in lit testing

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 31 16:13:48 PDT 2015


probinson created this revision.
probinson added reviewers: joker-eph, chapuni.
probinson added a subscriber: llvm-commits.
Herald added a subscriber: aemerson.

"REQUIRES: native" means the compiled code needs to be runnable on the
host. Things like JIT and lli may need this.

"REQUIRES: native-arch" (new in this commit) means that the host's
arch needs to be one of the configured targets.  Some tools, e.g. llc,
will default to the host triple if none is specified, and will fail if
the host's arch is not included (e.g. building on X86 and only the ARM
target is included).

Adds lit.cfg code to set "native-arch" and modifies all the places
where r243960 added "native" to use "native-arch" instead.


http://reviews.llvm.org/D12506

Files:
  llvm/test/CodeGen/Generic/lit.local.cfg
  llvm/test/CodeGen/MIR/Generic/lit.local.cfg
  llvm/test/DebugInfo/lit.local.cfg
  llvm/test/Feature/optnone-llc.ll
  llvm/test/Feature/optnone.ll
  llvm/test/Linker/subprogram-linkonce-weak.ll
  llvm/test/Linker/type-unique-odr-a.ll
  llvm/test/Linker/type-unique-simple-a.ll
  llvm/test/Linker/type-unique-simple2-a.ll
  llvm/test/Linker/type-unique-simple2.ll
  llvm/test/Linker/type-unique-type-array-a.ll
  llvm/test/Other/2010-05-06-Printer.ll
  llvm/test/lit.cfg
  llvm/test/tools/llvm-mc/fatal_warnings.test
  llvm/test/tools/llvm-mc/line_end_with_space.test
  llvm/test/tools/llvm-mc/no_warnings.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12506.33642.patch
Type: text/x-patch
Size: 7334 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150831/b8deb4e4/attachment.bin>


More information about the llvm-commits mailing list