X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flit.cfg;h=b5a982c02d5b234c9764bac540534753d6e40d87;hb=2a2fcc1a0ec4a115bbe76c185f7cd64e77b61e7c;hp=df1850a663dca92f8388705fa70d571387e1ff90;hpb=4a9c2585ab60fe9f0e40df8f2aeaf55d34ce77ee;p=oota-llvm.git diff --git a/test/lit.cfg b/test/lit.cfg index df1850a663d..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 @@ -162,18 +167,6 @@ 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. -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) ) - # Process jit implementation option jit_impl_cfg = lit_config.params.get('jit_impl', None) if jit_impl_cfg == 'mcjit': @@ -195,6 +188,7 @@ 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 @@ -211,10 +205,8 @@ config.substitutions.append( ('%exeext', config.llvm_exe_ext) ) NOJUNK = r"(?