From b9a8ce5c307e9d853fdda4200d13317584d3e9b6 Mon Sep 17 00:00:00 2001 From: tigro Date: Thu, 2 May 2024 22:08:50 +0300 Subject: [PATCH] Updateo to 1.37.0 --- .gitignore | 2 +- .ldc.metadata | 2 +- SOURCES/fix-ppc-build.patch | 24 ------------------------ SPECS/ldc.spec | 13 +++++++------ 4 files changed, 9 insertions(+), 32 deletions(-) delete mode 100644 SOURCES/fix-ppc-build.patch diff --git a/.gitignore b/.gitignore index 3148f49..2b027d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/ldc-1.35.0-src.tar.gz +SOURCES/ldc-1.37.0-src.tar.gz diff --git a/.ldc.metadata b/.ldc.metadata index bf3c5c0..ebdde8d 100644 --- a/.ldc.metadata +++ b/.ldc.metadata @@ -1 +1 @@ -b65cd012c58908cf0ada4b16b189adf9658fb549 SOURCES/ldc-1.35.0-src.tar.gz +ea38c3225df3b21246d5ba55a2005b3e4248118b SOURCES/ldc-1.37.0-src.tar.gz diff --git a/SOURCES/fix-ppc-build.patch b/SOURCES/fix-ppc-build.patch deleted file mode 100644 index 04ade4c..0000000 --- a/SOURCES/fix-ppc-build.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 87baf4a6f87c6776ba8f5dad276fb77e32e80065 Mon Sep 17 00:00:00 2001 -From: Kalev Lember -Date: Tue, 17 Oct 2023 10:44:24 +0200 -Subject: [PATCH] LDC: Fix PPC support to compile without deprecation warnings - -Fixes the following: -std/math/hardware.d(929): Deprecation: `asm` statement cannot be marked `@safe`, use `@system` or `@trusted` instead ---- - std/math/hardware.d | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git ldc-1.35.0-src/runtime/phobos/std/math/hardware.d ldc-1.35.0-src/runtime/phobos/std/math/hardware.d -index 3e0c2fd6fbb..24fcbb89a63 100644 ---- ldc-1.35.0-src/runtime/phobos/std/math/hardware.d -+++ ldc-1.35.0-src/runtime/phobos/std/math/hardware.d -@@ -926,7 +926,7 @@ private: - } - else version (PPC_Any) - { -- asm pure nothrow @nogc @safe -+ asm pure nothrow @nogc @trusted - { - `mtfsb0 24 - mtfsb0 25 diff --git a/SPECS/ldc.spec b/SPECS/ldc.spec index 8840567..683a8ef 100644 --- a/SPECS/ldc.spec +++ b/SPECS/ldc.spec @@ -3,7 +3,7 @@ %else %global llvm_version 17 %endif -%global soversion 105 +%global soversion 107 # bootstrapping is used for updating LDC to a newer version: it relies on an # older, working LDC compiler in the buildroot, which is then used to build a @@ -16,8 +16,8 @@ Name: ldc Epoch: 1 -Version: 1.35.0 -Release: 2%{?dist} +Version: 1.37.0 +Release: 1%{?dist} Summary: LLVM D Compiler # The DMD frontend in dmd/* GPL version 1 or artistic license @@ -38,9 +38,6 @@ Patch: ldc-no-default-rpath.patch Patch: 0001-Revert-Linux-Don-t-default-to-ld.gold-linker.patch %endif -# https://github.com/ldc-developers/phobos/pull/72 -Patch: fix-ppc-build.patch - ExclusiveArch: %{ldc_arches} ppc64le BuildRequires: bash-completion @@ -125,6 +122,7 @@ install --mode=0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ldc %{_bindir}/ldc-build-plugin %{_bindir}/ldc-build-runtime %{_bindir}/ldc-profdata +%{_bindir}/ldc-profgen %{_bindir}/ldc-prune-cache %{_bindir}/timetrace2txt %{_rpmconfigdir}/macros.d/macros.ldc @@ -149,6 +147,9 @@ install --mode=0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ldc %{_libdir}/libphobos2-ldc-shared.so.%{soversion}* %changelog +* Thu May 02 2024 Arkady L. Shane - 1:1.37.0-1 +- Update to 1.37.0 + * Thu May 02 2024 Arkady L. Shane - 1:1.35.0-2 - Rebuilt for MSVSphere 9.4 against llvm 17