Raphael Kubo da Costa 437040fe3d
[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@igalia.com>
2025-01-28 15:17:45 -08:00
..

See docs/CMake.html for instructions on how to build LLVM with CMake.