[PATCH] D11730: Improve lit "native" feature to check if the native backend is builtin

Filipe Cabecinhas filcab+llvm.phabricator at gmail.com
Mon Aug 3 22:59:14 PDT 2015


filcab added a subscriber: filcab.

================
Comment at: test/lit.cfg:340
@@ -340,1 +339,3 @@
+if config.host_triple == config.target_triple and \
+   config.native_target in config.targets_to_build:
     config.available_features.add("native")
----------------
Interesting, target_triple seems to be set (in cmake) to LLVM_HOST_TRIPLE (unless explicitly set), without caring about the backends being compiled.

Should we change the target_triple logic instead of this, though?

What's the value of "target_triple" when we don't have the current target selected? Is that value appropriate?


http://reviews.llvm.org/D11730







More information about the llvm-commits mailing list