[all-commits] [llvm/llvm-project] f70e83: [llvm-exegesis] Don't try to use SYS_rseq if it's ...

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Mon Aug 7 00:33:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f70e83af7a708a22fdde8c644ac5810223090cd4
      https://github.com/llvm/llvm-project/commit/f70e83af7a708a22fdde8c644ac5810223090cd4
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp

  Log Message:
  -----------
  [llvm-exegesis] Don't try to use SYS_rseq if it's not defined.

When compiling against recent glibc (>= 2.35) but old kernel headers (< 4.18), `SYS_rseq` is not defined and thus llvm-exegesis fails to build. So also check that `SYS_rseq` is defined before trying to use it.

Fixes https://github.com/llvm/llvm-project/issues/64456

Reviewed By: MaskRay, gchatelet

Differential Revision: https://reviews.llvm.org/D157189




More information about the All-commits mailing list