forked from OSchip/llvm-project
tests: Mangle '-vg' onto the end of the triple when running under valgrind, so
we can use the standard XFAIL and XTARGET to conditional tests based on valgrind. llvm-svn: 99089
This commit is contained in:
parent
e848de3911
commit
9b9a46c3f2
|
@ -119,6 +119,11 @@ def inferClang(PATH):
|
|||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue