diff --git a/1000-enable-cmake-ASM-language-for-riscv64.patch b/1000-enable-cmake-ASM-language-for-riscv64.patch deleted file mode 100644 index ce64294671d5dc111424055b54492e199ae3520f..0000000000000000000000000000000000000000 --- a/1000-enable-cmake-ASM-language-for-riscv64.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 60bbf65459741d7f16f43f23166f479b855fb069 Mon Sep 17 00:00:00 2001 -From: laokz -Date: Mon, 23 Oct 2023 11:36:41 +0800 -Subject: [PATCH] enable cmake ASM language for riscv64 - -Some RISC-V functions are implemented in .S files. -CMakeLists.txt disable ASM lang by default. Turn it on. - -Signed-off-by: laokz ---- - CMakeLists.txt | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 5a06805..90e8ada 100644 ---- a/a/CMakeLists.txt -+++ a/b/CMakeLists.txt -@@ -4,6 +4,10 @@ - - cmake_minimum_required(VERSION 3.13.4) - -+if(CMAKE_SYSTEM_PROCESSOR MATCHES riscv64) -+ enable_language(ASM) -+endif() -+ - set(LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR}/../cmake") - - # Add path for custom modules --- -2.42.0 - diff --git a/libunwind-15.0.7.src.tar.xz b/libunwind-15.0.7.src.tar.xz deleted file mode 100644 index 991ff004b5397ac403274e1d44d32792a4157a80..0000000000000000000000000000000000000000 Binary files a/libunwind-15.0.7.src.tar.xz and /dev/null differ diff --git a/libunwind-15.0.7.src.tar.xz.sig b/libunwind-15.0.7.src.tar.xz.sig deleted file mode 100644 index 3dd32d77b522e8b7b32940910bb1c0184528820c..0000000000000000000000000000000000000000 Binary files a/libunwind-15.0.7.src.tar.xz.sig and /dev/null differ diff --git a/llvm-libunwind.spec b/llvm-libunwind.spec deleted file mode 100644 index deb0d418c91e2decc0c5141b1b4d523182456861..0000000000000000000000000000000000000000 --- a/llvm-libunwind.spec +++ /dev/null @@ -1,129 +0,0 @@ -%bcond_without sys_llvm -%bcond_without check - -%global maj_ver 15 -%global min_ver 0 -%global patch_ver 7 -%global libunwind_version %{maj_ver}.%{min_ver}.%{patch_ver} -%global libunwind_srcdir libunwind-%{libunwind_version}.src - -%if %{with sys_llvm} -%global pkg_name llvm-libunwind -%global install_prefix %{_prefix} -%else -%global pkg_name llvm-libunwind%{maj_ver} -%global bin_suffix -%{maj_ver} -%global install_prefix %{_libdir}/%{name} -%endif - -%if 0%{?__isa_bits} == 64 -%global install_libdir %{install_prefix}/lib64 -%else -%global install_libdir %{install_prefix}/lib -%endif - -Name: %{pkg_name} -Version: %{libunwind_version} -Release: 2 -Summary: LLVM libunwind - - -License: Apache License 2.0 -URL: http://llvm.org -Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libunwind_version}/%{libunwind_srcdir}.tar.xz -Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libunwind_version}/%{libunwind_srcdir}.tar.xz.sig - -Patch1000: 1000-enable-cmake-ASM-language-for-riscv64.patch - -BuildRequires: clang -BuildRequires: cmake -BuildRequires: ninja-build -BuildRequires: llvm-devel - -%description - -LLVM libunwind is an implementation of the interface defined by the HP libunwind -project. It was contributed Apple as a way to enable clang++ to port to -platforms that do not have a system unwinder. It is intended to be a small and -fast implementation of the ABI, leaving off some features of HP's libunwind -that never materialized (e.g. remote unwinding). - -%package devel -Summary: LLVM libunwind development files -Provides: libunwind(major) = %{maj_ver} -Requires: %{name}%{?_isa} = %{version}-%{release} - -%description devel -Unversioned shared library for LLVM libunwind - -%package static -Summary: Static library for LLVM libunwind - -%description static -Static library for LLVM libunwind - -%prep -%autosetup -n %{libunwind_srcdir} -p2 - -%build -# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files. -export ASMFLAGS=$CFLAGS - -%cmake -GNinja \ - -DCMAKE_MODULE_PATH=%{install_libdir}/cmake/llvm \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -%if 0%{?__isa_bits} == 64 - -DLIBUNWIND_LIBDIR_SUFFIX=64 -%else - -DLIBUNWIND_LIBDIR_SUFFIX= -%endif - - -%ninja_build - -%install - -%ninja_install - - -# We can't install the unversionned path on default location because that would conflict with -# https://src.fedoraproject.org/rpms/libunwind -# -# The versionned path has a different soname (libunwind.so.1 compared to -# libunwind.so.8) so they can live together in %{_libdir} -# -# ABI wise, even though llvm-libunwind's library is named libunwind, it doesn't -# have the exact same ABI has gcc's libunwind (it actually provides a subset). -rm %{buildroot}%{install_libdir}/libunwind.so -mkdir -p %{buildroot}/%{install_libdir}/llvm-unwind/ - -pushd %{buildroot}/%{install_libdir}/llvm-unwind -ln -s ../libunwind.so.1.0 libunwind.so -popd - - -%check - -# upstream has a hard dependency on libcxx source code for test to be configured -# properly. We can't model that, so rely on gating instead. -#cmake_build --target check-unwind - -%files -%license LICENSE.TXT -%{install_libdir}/libunwind.so.1 -%{install_libdir}/libunwind.so.1.0 - -%files devel -%dir %{install_libdir}/llvm-unwind -%{install_libdir}/llvm-unwind/libunwind.so - -%files static -%{install_libdir}/libunwind.a - -%changelog -* Fri Oct 13 2023 laokz - 15.0.7-2 -- enable assembly source for riscv64 - -* Tue Jul 04 2023 cf-zhao - 15.0.7-1 -- Initial release