From d2c27b05d2aaf14b45a91f28bee7b65535792555 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Nov 26 2024 18:59:52 +0000 Subject: [facebook] temporarily use Clang 18 Signed-off-by: Michel Lind --- diff --git a/perf.spec b/perf.spec index afc9db5..51d012c 100644 --- a/perf.spec +++ b/perf.spec @@ -34,9 +34,18 @@ ExcludeArch: %{ix86} BuildRequires: make BuildRequires: bison BuildRequires: flex +%if 0%{?facebook} +%if 0%{?el9} +# Temporarily pin to building against the older clang +# so this works against an older Stream snapshot +BuildRequires: clang = 18.1.8-3.el9 +BuildRequires: llvm-devel = 18.1.8-3.el9 +%endif +%else BuildRequires: clang -BuildRequires: gcc BuildRequires: llvm-devel +%endif +BuildRequires: gcc BuildRequires: binutils-devel BuildRequires: capstone-devel BuildRequires: elfutils-devel