diff --git a/openmp/runtime/test/lit.cfg b/openmp/runtime/test/lit.cfg index ab69819530d4a..650d3853e8511 100644 --- a/openmp/runtime/test/lit.cfg +++ b/openmp/runtime/test/lit.cfg @@ -12,12 +12,16 @@ if 'PYLINT_IMPORT' in os.environ: lit_config = object() def prepend_dynamic_library_path(path): + target_arch = getattr(config, 'target_arch', None) if config.operating_system == 'Windows': name = 'PATH' sep = ';' elif config.operating_system == 'Darwin': name = 'DYLD_LIBRARY_PATH' sep = ':' + elif target_arch == 've': + name = 'VE_LD_LIBRARY_PATH' + sep = ':' else: name = 'LD_LIBRARY_PATH' sep = ':'