diff options
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/libomptarget/test/lit.cfg | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg index d4f63dd6c6de..3693343969d8 100644 --- a/openmp/libomptarget/test/lit.cfg +++ b/openmp/libomptarget/test/lit.cfg @@ -89,9 +89,10 @@ else: # Unices config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory if config.cuda_libdir: config.test_flags += " -Wl,-rpath," + config.cuda_libdir - append_dynamic_library_path('LIBRARY_PATH', config.library_dir, ":") - append_dynamic_library_path('LIBRARY_PATH', \ - config.omp_host_rtl_directory, ":") + if config.libomptarget_current_target.startswith('amdgcn'): + config.test_flags += " --libomptarget-amdgcn-bc-path=" + config.library_dir + if config.libomptarget_current_target.startswith('nvptx'): + config.test_flags += " --libomptarget-nvptx-bc-path=" + config.library_dir # substitutions # - for targets that exist in the system create the actual command. |