X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flit.cfg;h=ddb02ecf569e1d43edb5a0a2da7b27a653d44770;hb=a10369920fa86d8961495b71dbc00f5596d122d9;hp=ac18e50d99f26b22a1ff5f6ce8eb5cc4b9dbf9a1;hpb=f0ca9a8c94dafe795d5141e862ded156d6c6cd66;p=oota-llvm.git diff --git a/test/lit.cfg b/test/lit.cfg index ac18e50d99f..ddb02ecf569 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -56,17 +56,8 @@ llvm_obj_root = getattr(config, 'llvm_obj_root', None) if llvm_obj_root is not None: config.test_exec_root = os.path.join(llvm_obj_root, 'test') -# Tweak the PATH to include the scripts dir, the tools dir, and the llvm-gcc bin -# dir (if available). +# Tweak the PATH to include the tools dir. if llvm_obj_root is not None: - llvm_src_root = getattr(config, 'llvm_src_root', None) - if not llvm_src_root: - lit.fatal('No LLVM source root set!') - path = os.path.pathsep.join((os.path.join(llvm_src_root, 'test', - 'Scripts'), - config.environment['PATH'])) - config.environment['PATH'] = path - llvm_tools_dir = getattr(config, 'llvm_tools_dir', None) if not llvm_tools_dir: lit.fatal('No LLVM tools dir set!') @@ -169,7 +160,9 @@ config.substitutions.append( ('%lli_mcjit', lli_mcjit) ) # 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 'powerpc64' 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' @@ -208,9 +201,14 @@ if os.pathsep == ';': pathext = os.environ.get('PATHEXT', '').split(';') else: pathext = [''] +# Regex to reject matching a hyphen +NOHYPHEN = r"(?