X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flit.cfg;h=b5a982c02d5b234c9764bac540534753d6e40d87;hb=0e9c68e6bc8768143308b0162e900ba8bd10dc01;hp=171186ea502f15613351b1f8b0eb0f6809738ebc;hpb=1a1d7c4f4c68d64ae5d96ba45270cfcf46421ca0;p=oota-llvm.git diff --git a/test/lit.cfg b/test/lit.cfg index 171186ea502..b5a982c02d5 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,17 +161,11 @@ if re.search(r'cygwin|mingw32|win32', config.host_triple): lli_mcjit += ' -mtriple='+config.host_triple+'-elf' config.substitutions.append( ('%lli_mcjit', lli_mcjit) ) -# 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. -if 'arm' in config.target_triple \ - or 'aarch64' in config.target_triple \ - or 'powerpc64' in config.target_triple \ - or 's390x' in config.target_triple: - defaultIsMCJIT = 'true' -else: - defaultIsMCJIT = 'false' -config.substitutions.append( ('%defaultjit', '-use-mcjit='+defaultIsMCJIT) ) +# 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) ) # Process jit implementation option jit_impl_cfg = lit_config.params.get('jit_impl', None) @@ -188,6 +187,8 @@ 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) ) +config.substitutions.append( ('%python', config.python_executable) ) # 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 +196,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"(?