[llvm] [Offload] Escape \; in command string (PR #186120)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 12 07:01:50 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-offload

@llvm/pr-subscribers-backend-amdgpu

Author: Jan Patrick Lehr (jplehr)

<details>
<summary>Changes</summary>

This adds a \ in front of the ; between the two cache files to stop the run function to interpret it as a shell statement separator (or so).

---
Full diff: https://github.com/llvm/llvm-project/pull/186120.diff


1 Files Affected:

- (modified) offload/ci/openmp-offload-amdgpu-clang-flang.py (+1-1) 


``````````diff
diff --git a/offload/ci/openmp-offload-amdgpu-clang-flang.py b/offload/ci/openmp-offload-amdgpu-clang-flang.py
index c8215e2b5a1b7..7cb510cd256a5 100755
--- a/offload/ci/openmp-offload-amdgpu-clang-flang.py
+++ b/offload/ci/openmp-offload-amdgpu-clang-flang.py
@@ -35,7 +35,7 @@
                 "-DCMAKE_CXX_STANDARD=17",
                 "-DLIBOMPTARGET_PLUGINS_TO_BUILD=amdgpu;host",
                 "-DRUNTIMES_amdgcn-amd-amdhsa_LLVM_ENABLE_RUNTIMES=compiler-rt;openmp",
-                f"-DRUNTIMES_amdgcn-amd-amdhsa_CACHE_FILES='{w.in_llvmsrc('compiler-rt')}/cmake/caches/GPU.cmake;{w.in_llvmsrc('libcxx')}/cmake/caches/AMDGPU.cmake' CACHE STRING '')",
+                f"-DRUNTIMES_amdgcn-amd-amdhsa_CACHE_FILES={w.in_llvmsrc('compiler-rt')}/cmake/caches/GPU.cmake\;{w.in_llvmsrc('libcxx')}/cmake/caches/AMDGPU.cmake CACHE STRING '')",
             ]
         )
 

``````````

</details>


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


More information about the llvm-commits mailing list