[clang] [libclc] [libclc] Rework libclc naming convention to use the triple (PR #177465)

Aiden Grossman via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 26 08:16:15 PST 2026


boomanaiden154 wrote:

This patch is causing CMake configuration errors on the premerge buildbot:
```
2026-01-26T13:46:47.849060051Z CMake Error at /home/gha/llvm-project/libclc/cmake/modules/AddLibclc.cmake:407 (add_custom_command):
2026-01-26T13:46:47.849086795Z   Attempt to add a custom rule to output
2026-01-26T13:46:47.849088339Z 
2026-01-26T13:46:47.849090228Z     /home/gha/llvm-project/build/lib/clang/23/lib/r600--/libclc.bc.rule
2026-01-26T13:46:47.849101045Z 
2026-01-26T13:46:47.849103110Z   which already has a custom rule.
2026-01-26T13:46:47.849104522Z Call Stack (most recent call first):
2026-01-26T13:46:47.849106013Z   /home/gha/llvm-project/libclc/CMakeLists.txt:460 (add_libclc_builtin_set)
2026-01-26T13:46:47.849107043Z 
2026-01-26T13:46:47.849108005Z 
2026-01-26T13:46:47.851329201Z CMake Error at /home/gha/llvm-project/libclc/cmake/modules/AddLibclc.cmake:407 (add_custom_command):
2026-01-26T13:46:47.851341592Z   Attempt to add a custom rule to output
2026-01-26T13:46:47.851343793Z 
2026-01-26T13:46:47.851346484Z     /home/gha/llvm-project/build/lib/clang/23/lib/r600--/libclc.bc.rule
2026-01-26T13:46:47.851348290Z 
2026-01-26T13:46:47.851350814Z   which already has a custom rule.
2026-01-26T13:46:47.851352774Z Call Stack (most recent call first):
2026-01-26T13:46:47.851354795Z   /home/gha/llvm-project/libclc/CMakeLists.txt:460 (add_libclc_builtin_set)
2026-01-26T13:46:47.851356284Z 
2026-01-26T13:46:47.851357807Z 
2026-01-26T13:46:47.853361832Z CMake Error at /home/gha/llvm-project/libclc/cmake/modules/AddLibclc.cmake:407 (add_custom_command):
2026-01-26T13:46:47.853368044Z   Attempt to add a custom rule to output
2026-01-26T13:46:47.853369290Z 
2026-01-26T13:46:47.853370974Z     /home/gha/llvm-project/build/lib/clang/23/lib/r600--/libclc.bc.rule
2026-01-26T13:46:47.853372068Z 
2026-01-26T13:46:47.853373338Z   which already has a custom rule.
2026-01-26T13:46:47.853374637Z Call Stack (most recent call first):
2026-01-26T13:46:47.853376034Z   /home/gha/llvm-project/libclc/CMakeLists.txt:460 (add_libclc_builtin_set)
2026-01-26T13:46:47.853377158Z 
2026-01-26T13:46:47.853378154Z 
2026-01-26T13:47:02.534691197Z -- Generating done (11.9s)
```

https://lab.llvm.org/staging/#/builders/192

It looks like it might be an interaction between adding a bunch of projects at the same time. I'm going to revert for now given not having postsubmit coverage of the premerge configuration is a reasonably big deal. The CMake command to reproduce should be in there. If you can't reproduce, feel free to ping me and I will try and help.

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


More information about the cfe-commits mailing list