[all-commits] [llvm/llvm-project] 437040: [CMake] Use shm_open, not clock_gettime, to detect...

Raphael Kubo da Costa via All-commits all-commits at lists.llvm.org
Tue Jan 28 15:18:06 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 437040fe3df48eeb8584c25b45f0058e8fbac098
      https://github.com/llvm/llvm-project/commit/437040fe3df48eeb8584c25b45f0058e8fbac098
  Author: Raphael Kubo da Costa <rakuco at FreeBSD.org>
  Date:   2025-01-28 (Tue, 28 Jan 2025)

  Changed paths:
    M llvm/cmake/config-ix.cmake

  Log Message:
  -----------
  [CMake] Use shm_open, not clock_gettime, to detect librt (#120727)

On systems with glibc, clock_gettime() was moved from librt to libc in
version 2.17, in which case the current librt detection attempt would
always fail.

Look for shm_open instead, like other parts of the tree also do when
looking for librt.

Co-authored-by: Raphael Kubo da Costa <kubo at igalia.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