SHA256
1
0
forked from pool/ldc

Accepting request 972624 from devel:languages:D

- Update to 1.29.0

OBS-URL: https://build.opensuse.org/request/show/972624
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ldc?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2022-04-25 21:35:55 +00:00 committed by Git OBS Bridge
commit a11138367f
4 changed files with 68 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c18f4c76869f0196b459dcd6196c7eaea1b097cc422cf3771de394f6c0ef7474
size 7650063

3
ldc-1.29.0-src.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d0c066eb965467625d9c5e75c00c583451b9ffa363601f9e37275ca8a8aea140
size 8080420

View File

@ -1,3 +1,50 @@
-------------------------------------------------------------------
Tue Apr 12 11:47:22 CEST 2022 - Chris Josten <chris+suse@netsoj.nl>
- Update to 1.29.0:
* Frontend, druntime and Phobos are at version 2.099.1
* Support for LLVM 13 and LLVM 14
* New @hidden UDA (as counterpart of export).
* Support 'raw mangles' via leading \1 in pragma(mangle) strings,
e.g., to access magic linker symbols on Mac.
* New @noSanitize UDA to selectively disable sanitizer
instrumentation of functions.
* WebAssembly: Larger default stack size (1 MB) and protection
against stack overflow overwriting global memory.
* LDC doesn't default to the ld.gold linker anymore. The
combination of LLVM 13+ and older gold linkers can apparently
cause problems. We recommend using LLD, e.g., via -linker=lld
or by setting your default /usr/bin/ld symlink; it's
significantly faster too.
* -linkonce-templates is less aggressive by default now and
IMHO production-ready.
* When linking manually (not via LDC) against shared druntime, it
is now required to link the bundled lib/ldc_rt.dso.o[bj] object
file into each binary. It replaces the previously
Windows-specific dso_windows.obj.
* Basic compiler support for Newlib targets, i.e., triples
like arm-none-newlibeabi.
* dcompute: Add support for OpenCL image I/O.
* Revamped and improved -ftime-trace implementation for compiler
profiling/tracing, now excluding LLVM-internal traces, adding
frontend memory tracing, source file location infos etc
* Implement core.atomic.pause() for some architectures.
* Bug fixes:
* Linux: Make LTO work with LLD.
* Capture NRVO variable by ref for stack closures.
* -ftime-trace: JSON-escape filenames.
* RISC-V: Use 128-bit quadruple real.
* Linux x86/x64: Fix TLS range with static druntime and bfd/lld
linkers.
* Support rdtscp in DMD-style inline assembly.
* Fix dynamic casts across binary boundaries (DLLs etc.).
* Don't silently ignore invalid external tool specifications.
* LLVM v11.1: Add missing PGO ldc-profdata tool.
* ICE for 64-bit targets with 32-bit pointer size.
* Breaking ABI changes:
* extern(D): formal parameters of non-variadic functions aren't
reversed anymore, in line with the spec.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 17 13:49:15 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de> Mon May 17 13:49:15 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package ldc # spec file for package ldc
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,7 +16,7 @@
# #
%define so_ver 96 %define so_ver 99
%define lname_jit libldc-jit %define lname_jit libldc-jit
%define lname_runtime libdruntime-%{name} %define lname_runtime libdruntime-%{name}
%define lname_phobos libphobos2-%{name} %define lname_phobos libphobos2-%{name}
@ -40,10 +40,11 @@
%bcond_with ldc_tests %bcond_with ldc_tests
Name: ldc Name: ldc
Version: 1.26.0 Version: 1.29.0
Release: 0 Release: 0
Summary: The LLVM D Compiler Summary: The LLVM D Compiler
License: BSD-3-Clause AND Artistic-1.0 License: Artistic-1.0 AND BSD-3-Clause
Group: Development/Languages/Other
URL: https://wiki.dlang.org/LDC URL: https://wiki.dlang.org/LDC
Source0: https://github.com/ldc-developers/ldc/releases/download/v%{version}/ldc-%{version}-src.tar.gz Source0: https://github.com/ldc-developers/ldc/releases/download/v%{version}/ldc-%{version}-src.tar.gz
Source1: %{name}-rpmlintrc Source1: %{name}-rpmlintrc
@ -61,16 +62,16 @@ BuildRequires: llvm7-devel
BuildRequires: llvm-clang >= 6.0 BuildRequires: llvm-clang >= 6.0
BuildRequires: llvm-devel >= 6.0 BuildRequires: llvm-devel >= 6.0
%endif %endif
BuildRequires: binutils-gold
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: sqlite3-devel BuildRequires: sqlite3-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: pkgconfig(bash-completion) BuildRequires: pkgconfig(bash-completion)
BuildRequires: binutils-gold
# Should be installed, at least runtime # Should be installed, at least runtime
Recommends: ldc-phobos-devel = %{version} Recommends: ldc-phobos-devel = %{version}
Recommends: ldc-runtime-devel = %{version}
Recommends: ldc-jit-devel = %{version}
Recommends: %{name}-bash-completion Recommends: %{name}-bash-completion
Recommends: ldc-jit-devel = %{version}
Recommends: ldc-runtime-devel = %{version}
# Since version 1.13.0, ldc uses ld.gold by default # Since version 1.13.0, ldc uses ld.gold by default
Requires: binutils-gold Requires: binutils-gold
%if %{with ldc_bootstrap} %if %{with ldc_bootstrap}
@ -109,14 +110,17 @@ capabilities.
%package -n %{lname_runtime}%{so_ver} %package -n %{lname_runtime}%{so_ver}
Summary: Minimal D runtime library Summary: Minimal D runtime library
Group: System/Libraries
%description -n %{lname_runtime}%{so_ver} %description -n %{lname_runtime}%{so_ver}
The minimal runtime library required to support the D programming language. The minimal runtime library required to support the D programming language.
%package runtime-devel %package runtime-devel
Summary: Development files for the D runtime library Summary: Development files for the D runtime library
Group: Development/Libraries/Other
Requires: %{lname_runtime}%{so_ver} = %{version} Requires: %{lname_runtime}%{so_ver} = %{version}
Recommends: ldc-phobos-devel = %{version} Recommends: ldc-phobos-devel = %{version}
Group: System/Libraries
%description runtime-devel %description runtime-devel
This package contains the druntime development files necessary for developing This package contains the druntime development files necessary for developing
@ -124,18 +128,21 @@ with LDC.
%package -n %{lname_phobos}%{so_ver} %package -n %{lname_phobos}%{so_ver}
Summary: The D standard library Summary: The D standard library
Group: System/Libraries
%description -n %{lname_phobos}%{so_ver} %description -n %{lname_phobos}%{so_ver}
This package includes ldc's phobos library - The D standard library. This package includes ldc's phobos library - The D standard library.
%package -n %{lname_jit}%{so_ver} %package -n %{lname_jit}%{so_ver}
Summary: The LDC jit library Summary: The LDC jit library
Group: System/Libraries
%description -n %{lname_jit}%{so_ver} %description -n %{lname_jit}%{so_ver}
This package includes ldc's jit library. This package includes ldc's jit library.
%package jit-devel %package jit-devel
Summary: Development files for the D standard library Summary: Development files for the D standard library
Group: Development/Libraries/Other
Requires: %{lname_jit}%{so_ver} = %{version} Requires: %{lname_jit}%{so_ver} = %{version}
%description jit-devel %description jit-devel
@ -143,6 +150,7 @@ This package contains the LDC jit development files.
%package phobos-devel %package phobos-devel
Summary: Development files for the D standard library Summary: Development files for the D standard library
Group: Development/Libraries/Other
Requires: %{lname_phobos}%{so_ver} = %{version} Requires: %{lname_phobos}%{so_ver} = %{version}
Requires: %{name}-runtime-devel = %{version} Requires: %{name}-runtime-devel = %{version}
@ -157,7 +165,6 @@ Requires: bash-completion
%description bash-completion %description bash-completion
Optional dependency offering bash completion for ldc2 Optional dependency offering bash completion for ldc2
%prep %prep
%setup -q -n ldc-%{version}-src %setup -q -n ldc-%{version}-src
%patch0 -p1 %patch0 -p1
@ -294,6 +301,7 @@ rm -rf %{buildroot}%{_prefix}/lib/debug
%files -n %{lname_runtime}%{so_ver} %files -n %{lname_runtime}%{so_ver}
%{_libdir}/%{lname_runtime}-shared.so.* %{_libdir}/%{lname_runtime}-shared.so.*
%{_libdir}/%{lname_runtime}-debug-shared.so.* %{_libdir}/%{lname_runtime}-debug-shared.so.*
%{_libdir}/ldc_rt.dso.o
%files runtime-devel %files runtime-devel
%{_libdir}/%{lname_runtime}-shared.so %{_libdir}/%{lname_runtime}-shared.so
@ -301,6 +309,8 @@ rm -rf %{buildroot}%{_prefix}/lib/debug
%dir %{_includedir}/d %dir %{_includedir}/d
%{_includedir}/d/core %{_includedir}/d/core
%{_includedir}/d/ldc %{_includedir}/d/ldc
%{_includedir}/d/__builtins.di
%{_includedir}/d/importc.h
%{_includedir}/d/object.d %{_includedir}/d/object.d
%files -n %{lname_phobos}%{so_ver} %files -n %{lname_phobos}%{so_ver}