X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flit.cfg;h=ac8d4497f09110ec3002dfe4a754195263406126;hb=5b95cec37c7370c5afb4f05c161f1f269f660fe2;hp=3ee9edc8e6a0c2e3449044a8f72e32b55ee46553;hpb=e7d0b1d146168e2dedf21f244b028585026ec909;p=oota-llvm.git diff --git a/test/lit.cfg b/test/lit.cfg index 3ee9edc8e6a..ac8d4497f09 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. @@ -173,7 +179,7 @@ jit_impl_cfg = lit_config.params.get('jit_impl', None) if jit_impl_cfg == 'mcjit': # When running with mcjit, mangle -mcjit into target triple # and add -use-mcjit flag to lli invocation - if 'i686' in config.target_triple: + if 'i386' in config.target_triple or 'i686' in config.target_triple: config.target_triple += jit_impl_cfg + '-ia32' elif 'x86_64' in config.target_triple: config.target_triple += jit_impl_cfg + '-ia64' @@ -188,6 +194,7 @@ else: config.substitutions.append( ('%ocamlopt', config.ocamlopt_executable) ) config.substitutions.append( ('%llvmshlibdir', config.llvm_shlib_dir) ) config.substitutions.append( ('%shlibext', config.llvm_shlib_ext) ) +config.substitutions.append( ('%exeext', config.llvm_exe_ext) ) # For each occurrence of an llvm tool name as its own word, replace it # with the full path to the build directory holding that tool. This @@ -204,33 +211,54 @@ else: # Regex to reject matching a hyphen NOHYPHEN = r"(?