X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flit.cfg;h=664d55fa1ad7aca8973013c2f8aaf188bc4e8961;hb=60e9a53c21bef26ed81c1395b569cb48f7b4ef8e;hp=1b6fa54c52281d67a44ba0ba977e7a54e34ae277;hpb=2bef1a6b25d938210547cd0f5ba4a08abdad2583;p=oota-llvm.git diff --git a/test/lit.cfg b/test/lit.cfg index 1b6fa54c522..664d55fa1ad 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -95,6 +95,11 @@ for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']: if symbolizer in os.environ: config.environment[symbolizer] = os.environ[symbolizer] +# Propagate options for sanitizers. +for options in ['ASAN_OPTIONS']: + if options in os.environ: + config.environment[options] = os.environ[options] + ### import os @@ -156,6 +161,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. @@ -188,6 +199,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 @@ -195,22 +207,17 @@ config.substitutions.append( ('%shlibext', config.llvm_shlib_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"(?