X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flit.cfg;h=bbf0a6b1f50a84618dc26549b4deb28dde0ddac2;hb=c90bd4a88233ee25c875128022192204eb4f3266;hp=622f6ede1a126ec9ee3db97f07a0b64ffab59365;hpb=1214e71d771ca1083b5cb7d12e515d10b6537db2;p=oota-llvm.git diff --git a/test/lit.cfg b/test/lit.cfg index 622f6ede1a1..bbf0a6b1f50 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -156,6 +156,12 @@ if re.search(r'cygwin|mingw32|win32', config.host_triple): lli_mcjit += ' -mtriple='+config.host_triple+'-elf' config.substitutions.append( ('%lli_mcjit', lli_mcjit) ) +# Similarly, have a macro to use llc with DWARF even when the host is win32. +llc_dwarf = 'llc' +if re.search(r'win32', config.target_triple): + llc_dwarf += ' -mtriple='+config.target_triple.replace('-win32', '-mingw32') +config.substitutions.append( ('%llc_dwarf', llc_dwarf) ) + # Provide a substition for those tests that need to run the jit to obtain data # but simply want use the currently considered most reliable jit for platform # FIXME: ppc32 is not ready for mcjit. @@ -196,20 +202,17 @@ config.substitutions.append( ('%exeext', config.llvm_exe_ext) ) # tools that might happen to be in the user's PATH. Thus this list # includes every tool placed in $(LLVM_OBJ_ROOT)/$(BuildMode)/bin # (llvm_tools_dir in lit parlance). - # Don't match 'bugpoint-' or 'clang-'. - # Don't match '/clang' or '-clang'. -if os.pathsep == ';': - pathext = os.environ.get('PATHEXT', '').split(';') -else: - pathext = [''] -# Regex to reject matching a hyphen -NOHYPHEN = r"(?