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

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 31 16:32:58 PDT 2015


joker.eph added a subscriber: joker.eph.
joker.eph added a comment.

The `native` use-case is still not clearly motivated to me: it seems that it comes from the JIT tools (lli, other?) defaulting to the default LLVM triple, while I would expect them to default to the host triple.

If changing the tools is not desirable (why?), then the tests could be updated by always forcing the JIT to use the host on the command line (exporting the host triple as an env var and passing it on the RUN: line).


================
Comment at: llvm/test/lit.cfg:343
@@ -342,3 +342,3 @@
 
-# Native compilation: host arch == target arch and native backend built-in
-# FIXME: Consider cases that target can be executed
+# Native compilation: Objects compiled for target will run on the host.
+# We approximate this with: host triple == target triple.
----------------
"objects compiled for the *default* target triple will run the host".


http://reviews.llvm.org/D12506





More information about the llvm-commits mailing list