summaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny.ornl@gmail.com>2023-04-28 09:47:39 -0400
committerJoel E. Denny <jdenny.ornl@gmail.com>2023-04-28 09:47:39 -0400
commit036371debe202647aed9400a7dd2c4bfd2ed57e4 (patch)
tree58d606a3d00b5cd3783d478f609915b0f146ee1d /openmp
parent0fc19e222b5b0a86987ab058e0b34bc7014b56b3 (diff)
downloadllvm-036371debe202647aed9400a7dd2c4bfd2ed57e4.tar.gz
[OpenMP] Add missing -L to libomptarget tests
Without this patch, if an incompatible libomptarget.so is present in a system directory, such as /usr/lib64, check-openmp fails many libomptarget tests with linking errors. The problem appears to have started at D129875, which landed as dc52712a0632. This patch extends the libomptarget test suite config with a -L for the current build directory of libomptarget.so. Reviewed By: jhuber6, JonChesterfield Differential Revision: https://reviews.llvm.org/D149391
Diffstat (limited to 'openmp')
-rw-r--r--openmp/libomptarget/test/lit.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg
index 33138e910d5f..489d6109649f 100644
--- a/openmp/libomptarget/test/lit.cfg
+++ b/openmp/libomptarget/test/lit.cfg
@@ -64,7 +64,8 @@ config.test_format = lit.formats.ShTest()
# compiler flags
config.test_flags = " -I " + config.test_source_root + \
" -I " + config.omp_header_directory + \
- " -L " + config.library_dir;
+ " -L " + config.library_dir + \
+ " -L " + config.llvm_lib_directory
if config.omp_host_rtl_directory:
config.test_flags = config.test_flags + " -L " + \