[all-commits] [llvm/llvm-project] 33c56b: runtimes: Pass CMAKE_SYSTEM_NAME based on target t...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Jun 12 04:04:46 PDT 2026


  Branch: refs/heads/users/arsenm/runtimes/only-forward-macos-targets-darwin
  Home:   https://github.com/llvm/llvm-project
  Commit: 33c56b4a353da854ce95508f91ab7a823b85d441
      https://github.com/llvm/llvm-project/commit/33c56b4a353da854ce95508f91ab7a823b85d441
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M clang/cmake/modules/ClangConfig.cmake.in
    A cmake/Modules/GetTripleCMakeSystemName.cmake
    M llvm/cmake/modules/LLVMConfig.cmake.in
    M llvm/cmake/modules/LLVMExternalProjectUtils.cmake
    M llvm/runtimes/CMakeLists.txt

  Log Message:
  -----------
  runtimes: Pass CMAKE_SYSTEM_NAME based on target triple

Compute the cmake system name from the target triple, rather
than passing through the host's. This is primarily to stop
forwarding OSX specific cmake variables.

This fixes build failures when trying to build gpu libc on mac
hosts. Previously it would fail on several issues, starting with
an unused argument -mmacos-version-min error, followed by other
errors caused by passing -isysroot.

Secondarily, restrict the cmake imported targets when cross compiling.
Without this, the amdgpu build prints many cmake warnings about the
target not supporting shared libraries.

Claude did most of the actual work, though it required quite a few
rounds of prodding to get it into the right place. In particular it
took care of handling all of the cmake platform recognized names from
the triple.

Co-authored-by: Claude Opus 4.6 <noreply at anthropic.com>



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