From 981a0a8582e3aa9568823fa53135d00e63c8c022 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 17 Aug 2021 14:35:18 +0200 Subject: [PATCH] Don't use -w (treat warnings as errors) in default _d_optflags Instead, use -wi (treat warnings as informational) for distro builds so that new warnings don't break package builds. While at this, also sync _d_optflags with Debian's DFLAGS and drop unused _d_libdir definition. --- ldc.spec | 1 + macros.ldc | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ldc.spec b/ldc.spec index 6bb4713..fda9ccc 100644 --- a/ldc.spec +++ b/ldc.spec @@ -212,6 +212,7 @@ install -m0644 phobos.d.tags %{buildroot}/%{_datadir}/geany/tags/ * Mon Aug 16 2021 Kalev Lember - 1:1.27.1-1 - Update to 1.27.1 - Build with llvm 12 +- Don't use -w (treat warnings as errors) in default _d_optflags * Thu Jul 22 2021 Fedora Release Engineering - 1:1.25.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/macros.ldc b/macros.ldc index ae4b901..aba8664 100644 --- a/macros.ldc +++ b/macros.ldc @@ -3,7 +3,5 @@ # # Include directory where all .di or .d file are installed. %_d_includedir %{_includedir}/d -# Compile options for ldc and make file -%_d_optflags -release -w -g -O1 -# Lib directory path -%_d_libdir %{_libdir}/d/ +# Default D optimization flags for LDC +%_d_optflags -O -g -release -wi