From af9b9d6da479239e43e3d9807adaef30facb4d10 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 22 Jan 2024 14:03:22 +0000 Subject: [PATCH] Restore DWARF 4 config file for Fedora 38 This is a port of https://src.fedoraproject.org/rpms/clang/c/74b8bb039743c8c2f9d9906fac251a3873d42e57?branch=upstream-snapshot --- clang.cfg | 3 +++ files.spec.inc | 3 +++ sources.spec.inc | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 clang.cfg diff --git a/clang.cfg b/clang.cfg new file mode 100644 index 0000000..bee5a7a --- /dev/null +++ b/clang.cfg @@ -0,0 +1,3 @@ +# Drop the following option after debugedit adds support to DWARF-5: +# https://sourceware.org/bugzilla/show_bug.cgi?id=28728 +-gdwarf-4 diff --git a/files.spec.inc b/files.spec.inc index e8509e2..228a5bc 100644 --- a/files.spec.inc +++ b/files.spec.inc @@ -126,6 +126,9 @@ %files -n %{pkg_name_clang}-libs %{install_prefix}/lib/clang/%{maj_ver}/include/* %{install_libdir}/*.so.* +%if 0%{?fedora} == 38 +%{_sysconfdir}/%{name}/%{_target_platform}.cfg +%endif %files -n %{pkg_name_clang}-devel %if %{without compat_build} diff --git a/sources.spec.inc b/sources.spec.inc index 1c3a962..b409398 100644 --- a/sources.spec.inc +++ b/sources.spec.inc @@ -10,6 +10,8 @@ Source1006: release-keys.asc Source2005: macros.%{pkg_name_clang} %endif +Source2006: clang.cfg + # Sources we use to split up the main spec file in sections so that we can more # easily see what specfile sections are touched by a patch. Source1000: version.spec.inc