[libclc] [libclc] Initial support for cross-compiling OpenCL libraries (PR #174022)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 4 21:10:42 PST 2026


================
@@ -206,10 +218,12 @@ set( r600--_devices cedar cypress barts cayman )
 set( amdgcn--_devices tahiti )
 set( amdgcn-mesa-mesa3d_devices ${amdgcn--_devices} )
 set( amdgcn--amdhsa_devices none )
+set( amdgcn-amd-amdhsa_devices none )
----------------
jhuber6 wrote:

I was planning on trimming this up in a PR tomorrow. We definitely could though I don't know the subtleties here, since maybe someone depends on the specific triple.

I also really want to change how the files are installed, we should use the regular triple and then use the specific device as a subdirectory if possible. Right now we have like `libclc/` in the resource dir, when it should be more like standard `PER_TARGET_RUNTIME_DIR` I'd say.

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


More information about the cfe-commits mailing list