From afbb604baf5ce7f7a557e2e59652b03204816582 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Mon, 18 Nov 2024 09:46:32 -0300 Subject: [PATCH] Keep using DWARF-5 on all snapshot builds We want to continue testing DWARF-5 on all snapshot builds, including on RHEL 8 and 9. This is in-sync with https://src.fedoraproject.org/tests/clang/pull-request/48 . Fixes: 8451454bdb09e291f05da0f0f9a8b2ee29860219 (Port changes from RHEL 9) --- llvm.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index adf2bf7..ebd5952 100644 --- a/llvm.spec +++ b/llvm.spec @@ -1285,7 +1285,8 @@ echo "%%clang%{maj_ver}_resource_dir %%{_prefix}/lib/clang/%{maj_ver}" >> %{buil %if %{maj_ver} >=18 %global cfg_file_content --gcc-triple=%{_target_cpu}-redhat-linux -%if %{defined rhel} && 0%{?rhel} < 10 +# We want to use DWARF-5 on all snapshot builds. +%if %{without snapshot_build} && %{defined rhel} && 0%{?rhel} < 10 %global cfg_file_content %{cfg_file_content} -gdwarf-4 -g0 %endif