From 1265039e134082c3888ab24f895cac6aeb662ec8 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 7 Aug 2023 16:39:57 -0700 Subject: [PATCH] Disable profiler_builtins for EPEL7 We don't have compiler-rt available there. --- rust.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust.spec b/rust.spec index 9cc64eb..5e96177 100644 --- a/rust.spec +++ b/rust.spec @@ -330,8 +330,10 @@ find '%{buildroot}%{rustlibdir}'/wasm*/lib -type f -regex '.*\\.\\(a\\|rlib\\)' %{nil} %endif +%if 0%{?fedora} || 0%{?rhel} >= 8 # For profiler_builtins BuildRequires: compiler-rt +%endif # This component was removed as of Rust 1.69.0. # https://github.com/rust-lang/rust/pull/101841 @@ -746,9 +748,11 @@ end} end} %endif +%if 0%{?fedora} || 0%{?rhel} >= 8 # The exact profiler path is version dependent, and uses LLVM-specific # arch names in the filename, but this find is good enough for now... PROFILER=$(find %{_libdir}/clang -type f -name 'libclang_rt.profile-*.a') +%endif %configure --disable-option-checking \ --libdir=%{common_libdir} \