rebuiult with more cmake flags as attempt to fix 'Error: unrecognized trait classInstanceAlignment' [release 1.31.0-2mamba;Sun Mar 12 2023]
This commit is contained in:
parent
a4aacdf7a9
commit
56f7cdd84c
44
ldc.spec
44
ldc.spec
@ -1,6 +1,6 @@
|
|||||||
%define bootstrap 1
|
%define bootstrap 0
|
||||||
Name: ldc
|
Name: ldc
|
||||||
Version: 1.29.0
|
Version: 1.31.0
|
||||||
Release: 2mamba
|
Release: 2mamba
|
||||||
Summary: The LLVM-based D Compiler
|
Summary: The LLVM-based D Compiler
|
||||||
Group: Applications/Development
|
Group: Applications/Development
|
||||||
@ -11,12 +11,14 @@ URL: https://wiki.dlang.org/LDC
|
|||||||
Source: https://github.com/ldc-developers/ldc.git/v%{version}/ldc-%{version}.tar.bz2
|
Source: https://github.com/ldc-developers/ldc.git/v%{version}/ldc-%{version}.tar.bz2
|
||||||
Source1: https://github.com/ldc-developers/ldc/releases/download/v%{version}/ldc2-%{version}-linux-x86_64.tar.xz
|
Source1: https://github.com/ldc-developers/ldc/releases/download/v%{version}/ldc2-%{version}-linux-x86_64.tar.xz
|
||||||
Source2: https://github.com/ldc-developers/ldc/releases/download/v1.2.0/ldc2-1.2.0-linux-x86.tar.xz
|
Source2: https://github.com/ldc-developers/ldc/releases/download/v1.2.0/ldc2-1.2.0-linux-x86.tar.xz
|
||||||
|
Source3: https://github.com/ldc-developers/ldc/releases/download/v%{version}/ldc2-%{version}-linux-aarch64.tar.xz
|
||||||
Patch0: ldc-1.23.0-llvm-11.patch
|
Patch0: ldc-1.23.0-llvm-11.patch
|
||||||
License: BSD
|
License: BSD
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libgcc
|
BuildRequires: libgcc
|
||||||
BuildRequires: libllvm-devel
|
BuildRequires: libllvm-devel
|
||||||
|
BuildRequires: libspirv-llvm-translator-devel
|
||||||
BuildRequires: libstdc++6-devel
|
BuildRequires: libstdc++6-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -51,6 +53,9 @@ This package contains libraries and header files for developing applications tha
|
|||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
%setup -q -a2
|
%setup -q -a2
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch aarch64
|
||||||
|
%setup -q -a3
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%setup -q
|
%setup -q
|
||||||
%endif
|
%endif
|
||||||
@ -58,18 +63,30 @@ This package contains libraries and header files for developing applications tha
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -d build \
|
%cmake -d build \
|
||||||
-DINCLUDE_INSTALL_DIR=%{_includedir}/d \
|
-DBUILD_SHARED_LIBS=BOTH \
|
||||||
|
-DBUILD_LTO_LIBS=ON \
|
||||||
-DLDC_WITH_LLD=OFF \
|
-DLDC_WITH_LLD=OFF \
|
||||||
%if "0%{?bootstrap}"
|
%ifarch x86_64 aarch64
|
||||||
|
-DD_COMPILER_FLAGS="-link-defaultlib-shared=false -linker=gold --flto=thin" \
|
||||||
|
%else
|
||||||
|
-DD_COMPILER_FLAGS="-link-defaultlib-shared=false --flto=thin" \
|
||||||
|
%endif
|
||||||
|
-DADDITIONAL_DEFAULT_LDC_SWITCHES="\"-link-defaultlib-shared\"" \
|
||||||
|
-DINCLUDE_INSTALL_DIR=%{_includedir}/d \
|
||||||
|
%if "0%{?bootstrap}" != "0"
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
-DD_COMPILER=`pwd`/../ldc2-%{version}-linux-x86_64/bin/ldmd2
|
-DD_COMPILER=`pwd`/../ldc2-%{version}-linux-x86_64/bin/ldmd2
|
||||||
%endif
|
%endif
|
||||||
%ifarch %{ix86}
|
%ifarch aarch64
|
||||||
-DD_COMPILER=`pwd`/../ldc2-1.2.0-linux-x86/bin/ldmd2
|
-DD_COMPILER=`pwd`/../ldc2-%{version}-linux-aarch64/bin/ldmd2
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%make
|
#%ifarch %{ix86}
|
||||||
|
# -DD_COMPILER=`pwd`/../ldc2-1.2.0-linux-x86/bin/ldmd2
|
||||||
|
#%endif
|
||||||
|
|
||||||
|
%make -j1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -117,13 +134,22 @@ This package contains libraries and header files for developing applications tha
|
|||||||
%{_libdir}/ldc_rt.dso.o
|
%{_libdir}/ldc_rt.dso.o
|
||||||
%{_libdir}/libdruntime-ldc-debug-shared.so
|
%{_libdir}/libdruntime-ldc-debug-shared.so
|
||||||
%{_libdir}/libdruntime-ldc-shared.so
|
%{_libdir}/libdruntime-ldc-shared.so
|
||||||
#%{_libdir}/libldc-jit-rt.a
|
%{_libdir}/libdruntime-ldc*.a
|
||||||
#%{_libdir}/libldc-jit.so
|
|
||||||
%{_libdir}/libphobos2-ldc-debug-shared.so
|
%{_libdir}/libphobos2-ldc-debug-shared.so
|
||||||
%{_libdir}/libphobos2-ldc-shared.so
|
%{_libdir}/libphobos2-ldc-shared.so
|
||||||
|
%{_libdir}/libphobos2-ldc*.a
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Mar 12 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.31.0-2mamba
|
||||||
|
- rebuiult with more cmake flags as attempt to fix 'Error: unrecognized trait classInstanceAlignment'
|
||||||
|
|
||||||
|
* Sun Feb 12 2023 Automatic Build System <autodist@mambasoft.it> 1.31.0-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
* Thu Jul 21 2022 Automatic Build System <autodist@mambasoft.it> 1.30.0-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Mon May 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.29.0-2mamba
|
* Mon May 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.29.0-2mamba
|
||||||
- rebuilt with llvm 14.0.3
|
- rebuilt with llvm 14.0.3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user