[all-commits] [llvm/llvm-project] 117504: [libc] Fix GPU loader propagation to lit test infr...

Jeff Bailey via All-commits all-commits at lists.llvm.org
Mon Mar 2 06:07:46 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1175046d14b9ce11c6b171df4e935882fe2c80b3
      https://github.com/llvm/llvm-project/commit/1175046d14b9ce11c6b171df4e935882fe2c80b3
  Author: Jeff Bailey <jbailey at raspberryginger.com>
  Date:   2026-03-02 (Mon, 02 Mar 2026)

  Changed paths:
    M libc/test/CMakeLists.txt
    M libc/test/lit.site.cfg.py.in

  Log Message:
  -----------
  [libc] Fix GPU loader propagation to lit test infrastructure (#184105)

The lit-based test execution added in c776a52fa263 did not propagate the
GPU loader executable to the lit site configuration. When building for
GPU targets, the loader (amdhsa-loader, nvptx-loader, or a
user-specified LIBC_GPU_LOADER_EXECUTABLE) was resolved into the
libc.utils.gpu.loader target but never passed through to the generated
lit.site.cfg.py.

Fix this by resolving the executable path from the libc.utils.gpu.loader
target property and including it in configure_lit_site_cfg's PATHS list.
In lit.site.cfg.py.in, if no explicit LIBC_TEST_CMD is set but a GPU
loader is present, construct libc_test_cmd from the loader path,
mirroring the logic in add_libc_hermetic() in LLVMLibCTestRules.cmake.

Tested:
* GPU build with LIBC_GPU_LOADER_EXECUTABLE set to /bin/echo used to
fail (tried to run the binary), now it works.
 * Native compiler check-libc-lit continues to work after this change.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list