diff --git a/ldc.spec b/ldc.spec index 0284799..8360871 100644 --- a/ldc.spec +++ b/ldc.spec @@ -1,6 +1,6 @@ -%define bootstrap 1 +%define bootstrap 0 Name: ldc -Version: 1.29.0 +Version: 1.31.0 Release: 2mamba Summary: The LLVM-based D Compiler 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 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 +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 License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libllvm-devel +BuildRequires: libspirv-llvm-translator-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: cmake @@ -51,6 +53,9 @@ This package contains libraries and header files for developing applications tha %ifarch %{ix86} %setup -q -a2 %endif +%ifarch aarch64 +%setup -q -a3 +%endif %else %setup -q %endif @@ -58,18 +63,30 @@ This package contains libraries and header files for developing applications tha %build %cmake -d build \ - -DINCLUDE_INSTALL_DIR=%{_includedir}/d \ + -DBUILD_SHARED_LIBS=BOTH \ + -DBUILD_LTO_LIBS=ON \ -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 -DD_COMPILER=`pwd`/../ldc2-%{version}-linux-x86_64/bin/ldmd2 %endif -%ifarch %{ix86} - -DD_COMPILER=`pwd`/../ldc2-1.2.0-linux-x86/bin/ldmd2 +%ifarch aarch64 + -DD_COMPILER=`pwd`/../ldc2-%{version}-linux-aarch64/bin/ldmd2 %endif %endif -%make +#%ifarch %{ix86} +# -DD_COMPILER=`pwd`/../ldc2-1.2.0-linux-x86/bin/ldmd2 +#%endif + +%make -j1 %install [ "%{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}/libdruntime-ldc-debug-shared.so %{_libdir}/libdruntime-ldc-shared.so -#%{_libdir}/libldc-jit-rt.a -#%{_libdir}/libldc-jit.so +%{_libdir}/libdruntime-ldc*.a %{_libdir}/libphobos2-ldc-debug-shared.so %{_libdir}/libphobos2-ldc-shared.so +%{_libdir}/libphobos2-ldc*.a %doc README.md %changelog +* Sun Mar 12 2023 Silvan Calarco 1.31.0-2mamba +- rebuiult with more cmake flags as attempt to fix 'Error: unrecognized trait classInstanceAlignment' + +* Sun Feb 12 2023 Automatic Build System 1.31.0-1mamba +- automatic version update by autodist + +* Thu Jul 21 2022 Automatic Build System 1.30.0-1mamba +- automatic version update by autodist + * Mon May 02 2022 Silvan Calarco 1.29.0-2mamba - rebuilt with llvm 14.0.3