[all-commits] [llvm/llvm-project] 531e91: [compiler-rt][profile] Gate ROCm host runtime behi...

Guy David via All-commits all-commits at lists.llvm.org
Thu May 28 01:00:14 PDT 2026


  Branch: refs/heads/users/guy-david/profile-rocm-option
  Home:   https://github.com/llvm/llvm-project
  Commit: 531e912ef7a3637183416c77ce310ccf51a90651
      https://github.com/llvm/llvm-project/commit/531e912ef7a3637183416c77ce310ccf51a90651
  Author: Guy David <guyda96 at gmail.com>
  Date:   2026-05-28 (Thu, 28 May 2026)

  Changed paths:
    M compiler-rt/CMakeLists.txt
    M compiler-rt/lib/profile/CMakeLists.txt
    M compiler-rt/lib/profile/InstrProfilingFile.c

  Log Message:
  -----------
  [compiler-rt][profile] Gate ROCm host runtime behind COMPILER_RT_BUILD_PROFILE_ROCM

InstrProfilingPlatformROCm.cpp (added in 5db13643f4b7) is currently built
into every non-baremetal libclang_rt.profile, but not all hosts support it
(e.g. it fails to link on Darwin, where __llvm_write_custom_profile is
unavailable).

Add a COMPILER_RT_BUILD_PROFILE_ROCM CMake option (defaulting off on Apple,
on elsewhere) to allow that host to opt out.



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