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

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).
This commit is contained in:
Jan Patrick Lehr 2026-03-12 15:02:40 +01:00 committed by GitHub
parent 1f2a3bfd40
commit ee797883e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ with worker.run(
"-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 '')",
]
)