we can use the standard XFAIL and XTARGET to conditional tests based on
valgrind.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99089
91177308-0d34-0410-b5e6-
96231b3b80d8
return clang
+# When running under valgrind, we mangle '-vg' onto the end of the triple so we
+# can check it with XFAIL and XTARGET.
+if lit.useValgrind:
+ config.target_triple += '-vg'
+
config.clang = inferClang(config.environment['PATH'])
if not lit.quiet:
lit.note('using clang: %r' % config.clang)