From 675a5a2eeb1bfc30a74c81649be4363abfbc249d Mon Sep 17 00:00:00 2001 From: "Kazushi (Jam) Marukawa" Date: Sat, 2 Sep 2023 10:52:07 +0200 Subject: [PATCH] [OpenMP][test][VE] Change to use VE_LD_LIBRARY_PATH for VE Change to use VE_LD_LIBRARY_PATH for VE instead of LD_LIBRARY_PATH. The VE is connected to the host, and compiled test programs for VE is invoked on the host and transferred to the VE. If programs are compiled for the host, we use LD_LIBRARY_PATH. Otherwise, we use VE_LD_LIBRARY_PATH. --- openmp/runtime/test/lit.cfg | 4 ++++ 1 file changed, 4 insertions(+) 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 = ':'