[Openmp-commits] [openmp] 036371d - [OpenMP] Add missing -L to libomptarget tests
Joel E. Denny via Openmp-commits
openmp-commits at lists.llvm.org
Fri Apr 28 06:49:43 PDT 2023
Author: Joel E. Denny
Date: 2023-04-28T09:47:39-04:00
New Revision: 036371debe202647aed9400a7dd2c4bfd2ed57e4
URL: https://github.com/llvm/llvm-project/commit/036371debe202647aed9400a7dd2c4bfd2ed57e4
DIFF: https://github.com/llvm/llvm-project/commit/036371debe202647aed9400a7dd2c4bfd2ed57e4.diff
LOG: [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
Added:
Modified:
openmp/libomptarget/test/lit.cfg
Removed:
################################################################################
diff --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg
index 33138e910d5fc..489d6109649ff 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 " + \
More information about the Openmp-commits
mailing list