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

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 1 08:41:53 PDT 2015


probinson added a comment.

I was mis-remembering some research from maybe six months ago... in fact llc does *not* default to the host triple, it will pay attention to the default triple.  The sequence is:

- take the triple from the IR, if specified
- triple from the command line will override this, if specified
- if still no triple is set, use default target triple specified at build time

So, as an experiment I should have done in the first place, I took an LLVM hosted on X86 with only the ARM backend included, and a default LLVM triple set to an ARM value.  I removed llvm/test/DebugInfo/lit.local.cfg (essentially undoing Mehdi's change) and then ran the DebugInfo tests under llvm-lit.  They basically worked (2 unexpected failures out of 100 or so).  One was a segfault, one is something that has commentary about it being a bit flakey.

@Mehdi, this suggests that your change should not have been necessary in the first place.  What configuration were you using that caused so many failures?


http://reviews.llvm.org/D12506





More information about the llvm-commits mailing list