[Openmp-commits] [openmp] [Libomptarget] Output the DeviceRTL alongside the other libraries (PR #73705)
    Shilei Tian via Openmp-commits 
    openmp-commits at lists.llvm.org
       
    Tue Nov 28 15:11:03 PST 2023
    
    
  
================
@@ -156,8 +156,8 @@ def remove_suffix_if_present(name):
 def add_libraries(source):
     if config.libomptarget_has_libc:
         return source + " " + config.llvm_library_dir + "/libcgpu.a " + \
-               config.library_dir + "/libomptarget.devicertl.a"
-    return source + " " + config.library_dir + "/libomptarget.devicertl.a"
+               config.llvm_library_dir + "/libomptarget.devicertl.a"
+    return source + " " + config.llvm_library_dir + "/libomptarget.devicertl.a"
----------------
shiltian wrote:
I tried your patch and I think it will indeed break standalone build.
```
config.library_dir = "/gpfs/jlse-fs0/users/ac.shilei.tian/build/openmp/release/libomptarget"
config.llvm_library_dir = "/gpfs/jlse-fs0/users/ac.shilei.tian/build/llvm/release/./lib"
```
The DeviceRTL library is in `/gpfs/jlse-fs0/users/ac.shilei.tian/build/openmp/release/libomptarget`.
https://github.com/llvm/llvm-project/pull/73705
    
    
More information about the Openmp-commits
mailing list