[llvm] [OpenMP] Fix incorrect CUDA bc path after library change (PR #157547)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 8 13:48:24 PDT 2025


================
@@ -169,7 +169,7 @@ else: # Unices
     if config.cuda_libdir:
         config.test_flags += " -Wl,-rpath," + config.cuda_libdir
     if config.libomptarget_current_target.startswith('nvptx'):
-        config.test_flags_clang += " --libomptarget-nvptx-bc-path=" + config.llvm_library_intdir
+        config.test_flags_clang += " --libomptarget-nvptx-bc-path=" + config.llvm_library_intdir + "/nvptx64-nvidia-cuda"
----------------
shiltian wrote:

I thought at one point we set the intermediate directory for those bitcode files explicitly to `config.llvm_library_intdir`.

https://github.com/llvm/llvm-project/pull/157547


More information about the llvm-commits mailing list