diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 27702031efa0022ded12f87403136c8cf70dc4bc..0000000000000000000000000000000000000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -cmake_minimum_required(VERSION 3.13.4) -project(Runtimes C CXX ASM) -add_subdirectory(libcxxabi) -add_subdirectory(libcxx) -add_subdirectory(libunwind) \ No newline at end of file diff --git a/README.en.md b/README.en.md index 8299cca92704c7dc03260ed1003f2d0d50a8da60..b2fc3c6c030ee461f502d66dea23b58372181b28 100644 --- a/README.en.md +++ b/README.en.md @@ -1,36 +1,3 @@ # libcxx-latest -#### Description -The libcxx is c++ libs of llvm for openEuler - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +This multiversion branch has been deprecated, using [llvm-toolset-18](https://gitee.com/src-openeuler/llvm-toolset-18) instead. diff --git a/README.md b/README.md index b2a9fa11bbbe6aad9257c532b73d2431e5aded5b..2bf4fe3d8c0f9fe352f0bd8fc015459f53eb41c5 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,4 @@ # libcxx-latest -#### 介绍 -The libcxx is c++ libs of llvm for openEuler +该多版本分支已废弃, 使用 [llvm-toolset-18](https://gitee.com/src-openeuler/llvm-toolset-18) 替代. -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/fedora-standalone.patch b/fedora-standalone.patch deleted file mode 100644 index 1e4646a4a903c1b7c0e1e71a810055d7d8953681..0000000000000000000000000000000000000000 --- a/fedora-standalone.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 0ef68aab2b08915b9144ffa67b3319e3e8332445 Mon Sep 17 00:00:00 2001 -From: Nikita Popov -Date: Thu, 4 Aug 2022 12:44:15 +0200 -Subject: [PATCH] Fix standalone build - ---- - libunwind/docs/CMakeLists.txt | 1 + - 1 files changed, 1 insertions(+) - -diff --git a/libunwind/docs/CMakeLists.txt b/libunwind/docs/CMakeLists.txt -index 79b87eb03b44..eaf6f3db5223 100644 ---- a/libunwind/docs/CMakeLists.txt -+++ b/libunwind/docs/CMakeLists.txt -@@ -1,5 +1,6 @@ - include(FindSphinx) - if (SPHINX_FOUND AND LLVM_ENABLE_SPHINX) -+ include(AddLLVM) - include(AddSphinxTarget) - if (${SPHINX_OUTPUT_HTML}) - add_sphinx_target(html libunwind) --- -2.37.1 \ No newline at end of file diff --git a/libcxx-18.1.8.src.tar.xz b/libcxx-18.1.8.src.tar.xz deleted file mode 100644 index 89ffc9d1122dd57b14ed332ed2393fea60601977..0000000000000000000000000000000000000000 Binary files a/libcxx-18.1.8.src.tar.xz and /dev/null differ diff --git a/libcxx.spec b/libcxx.spec deleted file mode 100644 index e55b0920fed6487f4894ab290866e5755e45f66c..0000000000000000000000000000000000000000 --- a/libcxx.spec +++ /dev/null @@ -1,283 +0,0 @@ -%bcond_without check -%bcond_without toolchain_clang - -%if %{with toolchain_clang} -%global toolchain clang -%endif - -%global maj_ver 18 -%global min_ver 1 -%global patch_ver 8 -%global libcxx_version %{maj_ver}.%{min_ver}.%{patch_ver} - -%global libcxx_srcdir libcxx-%{libcxx_version}.src -%global libcxxabi_srcdir libcxxabi-%{libcxx_version}.src -%global libunwind_srcdir libunwind-%{libcxx_version}.src -%global runtimes_srcdir runtimes-%{libcxx_version}.src -%global runtimes_cmakedir %{runtimes_srcdir}/cmake/Modules - -%global _scl_prefix /opt/openEuler -%{?scl:%scl_package %scl} -%{!?scl:%global scl_prefix llvm-toolset-%{maj_ver}-} -%{!?scl:%global pkg_name %{name}} -%global install_prefix %{!?scl:%{_scl_prefix}/llvm-toolset-%{maj_ver}/root}%{_prefix} -%global install_datadir %{!?scl:%{_scl_prefix}/llvm-toolset-%{maj_ver}/root}%{_datadir} - -%if 0%{?__isa_bits} == 64 -%global install_libdir %{install_prefix}/lib64 -%else -%global install_libdir %{install_prefix}/lib -%endif -%global install_includedir %{install_prefix}/include - -Name: %{?scl_prefix}libcxx -Version: %{libcxx_version} -Release: 1 -Summary: LLVM "libcxx" runtime libraries -License: Apache-2.0 -URL: http://llvm.org -Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libcxx_version}/%{libcxx_srcdir}.tar.xz -Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libcxx_version}/%{libcxxabi_srcdir}.tar.xz -Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libcxx_version}/%{libunwind_srcdir}.tar.xz -Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libcxx_version}/%{runtimes_srcdir}.tar.xz -Source4: CMakeLists.txt - -Patch0: fedora-standalone.patch - -%if "%toolchain" == "clang" -BuildRequires: clang -%endif -BuildRequires: %{?scl_prefix}clang cmake ninja-build -BuildRequires: %{?scl_prefix}llvm-devel = %{version} -BuildRequires: %{?scl_prefix}llvm-cmake-utils = %{version} - -# We need python3-devel for %%py3_shebang_fix -BuildRequires: python3-devel - -# For documentation -BuildRequires: python3-sphinx - -%{?scl:Requires: %scl_runtime} - -%description -The libcxx-devel package includes the libraries and header files for libcxx. - -# libcxx -%package devel -Summary: Headers and libraries for libcxx devel -Requires: %{pkg_name}%{?_isa} = %{version}-%{release} -Requires: libcxxabi-devel - -%description devel -%{summary}. - -%package static -Summary: Static libraries for libcxx - -%description static -%{summary}. - - -# libcxxabi -%package -n %{?scl_prefix}libcxxabi -Summary: Low level support for a standard C++ library - -%description -n %{?scl_prefix}libcxxabi -libcxxabi provides low level support for a standard C++ library. - -%package -n %{?scl_prefix}libcxxabi-devel -Summary: Headers and libraries for libcxxabi devel -Requires: %{?scl_prefix}libcxxabi%{?_isa} = %{version}-%{release} - -%description -n %{?scl_prefix}libcxxabi-devel -%{summary}. - -%package -n %{?scl_prefix}libcxxabi-static -Summary: Static libraries for libcxxabi - -%description -n %{?scl_prefix}libcxxabi-static -%{summary}. - - -# libunwind -%package -n %{?scl_prefix}llvm-libunwind -Summary: LLVM libunwind - -%description -n %{?scl_prefix}llvm-libunwind - -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 -n %{?scl_prefix}llvm-libunwind-devel -Summary: LLVM libunwind development files -Provides: %{?scl_prefix}libunwind(major) = %{maj_ver} -Requires: %{?scl_prefix}llvm-libunwind%{?_isa} = %{version}-%{release} - -%description -n %{?scl_prefix}llvm-libunwind-devel -Unversioned shared library for LLVM libunwind - -%package -n %{?scl_prefix}llvm-libunwind-static -Summary: Static library for LLVM libunwind - -%description -n %{?scl_prefix}llvm-libunwind-static -%{summary}. - -%package -n %{?scl_prefix}llvm-libunwind-doc -Summary: libunwind documentation -# jquery.js and langage_data.js are used in the HTML doc and under BSD License -License: BSD AND (Apache-2.0 WITH LLVM-exception OR NCSA OR MIT) - -%description -n %{?scl_prefix}llvm-libunwind-doc -Documentation for LLVM libunwind - -%prep -%setup -T -q -b 0 -n %{libcxx_srcdir} -%setup -T -q -b 1 -n %{libcxxabi_srcdir} -%setup -T -q -b 2 -n %{libunwind_srcdir} -%setup -T -q -b 3 -n %{runtimes_srcdir} -%setup -T -c -n build - -cp %{SOURCE4} . -mv ../%{libcxx_srcdir} libcxx -mv ../%{libcxxabi_srcdir} libcxxabi -mv ../%{libunwind_srcdir} libunwind -mkdir -p runtimes/cmake/Modules -cp ../%{runtimes_cmakedir}/HandleFlags.cmake runtimes/cmake/Modules/ -cp ../%{runtimes_cmakedir}/WarningFlags.cmake runtimes/cmake/Modules/ - -%autopatch -p1 - -#%py3_shebang_fix libcxx/utils/ - -%build -mkdir -p _build -cd _build -# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files. -export ASMFLAGS=$CFLA - -%cmake -GNinja \ - -DCMAKE_INSTALL_PREFIX=%{install_prefix} \ - -DLLVM_COMMON_CMAKE_UTILS=%{install_datadir}/llvm/cmake \ - -DLLVM_MAIN_SRC_DIR=%{install_prefix}/src \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_MODULE_PATH="%{install_libdir}/cmake/llvm;%{install_datadir}/llvm/cmake/Modules" \ - -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -%if 0%{?__isa_bits} == 64 - -DLIBCXX_LIBDIR_SUFFIX:STRING=64 \ - -DLIBCXXABI_LIBDIR_SUFFIX:STRING=64 \ - -DLIBUNWIND_LIBDIR_SUFFIX:STRING=64 \ -%endif - -DLIBCXX_INCLUDE_BENCHMARKS=OFF \ - -DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON \ - -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=ON \ - -DLIBCXXABI_USE_LLVM_UNWINDER=OFF \ - -DLLVM_BUILD_DOCS=ON \ - -DLLVM_ENABLE_SPHINX=ON \ - -DLIBUNWIND_INCLUDE_DOCS=ON \ - -DLIBUNWIND_INSTALL_INCLUDE_DIR=%{install_includedir}/llvm-libunwind \ - -DLIBUNWIND_INSTALL_SPHINX_HTML_DIR=%{_pkgdocdir}/html \ -%if "%{toolchain}" == "clang" - -DCMAKE_C_COMPILER=clang \ - -DCMAKE_CXX_COMPILER=clang++ \ -%endif - .. - -%ninja_build - -%install -cd _build - -%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 as 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 - -rm %{buildroot}%{_pkgdocdir}/html/.buildinfo - -%ldconfig_scriptlets -%files -%license libcxx/LICENSE.TXT -%doc libcxx/CREDITS.TXT libcxx/TODO.TXT -%{install_libdir}/libc++.so.* - -%files devel -%{install_includedir}/c++/ -%exclude %{install_includedir}/c++/v1/cxxabi.h -%exclude %{install_includedir}/c++/v1/__cxxabi_config.h -%{install_libdir}/libc++.so - -%files static -%license libcxx/LICENSE.TXT -%{install_libdir}/libc++.a -%{install_libdir}/libc++experimental.a - -%files -n %{?scl_prefix}libcxxabi -%license libcxxabi/LICENSE.TXT -%doc libcxxabi/CREDITS.TXT -%{install_libdir}/libc++abi.so.* - -%files -n %{?scl_prefix}libcxxabi-devel -%{install_includedir}/c++/v1/cxxabi.h -%{install_includedir}/c++/v1/__cxxabi_config.h -%{install_libdir}/libc++abi.so - -%files -n %{?scl_prefix}libcxxabi-static -%{install_libdir}/libc++abi.a - -%files -n %{?scl_prefix}llvm-libunwind -%license libunwind/LICENSE.TXT -%{install_libdir}/libunwind.so.1 -%{install_libdir}/libunwind.so.1.0 - -%files -n %{?scl_prefix}llvm-libunwind-devel -%{install_includedir}/llvm-libunwind/__libunwind_config.h -%{install_includedir}/llvm-libunwind/libunwind.h -%{install_includedir}/llvm-libunwind/libunwind.modulemap -%{install_includedir}/llvm-libunwind/mach-o/compact_unwind_encoding.h -%{install_includedir}/llvm-libunwind/mach-o/compact_unwind_encoding.modulemap -%{install_includedir}/llvm-libunwind/unwind.h -%{install_includedir}/llvm-libunwind/unwind_arm_ehabi.h -%{install_includedir}/llvm-libunwind/unwind_itanium.h -%dir %{install_libdir}/llvm-unwind -%{install_libdir}/llvm-unwind/libunwind.so - -%files -n %{?scl_prefix}llvm-libunwind-static -%{install_libdir}/libunwind.a - -%files -n %{?scl_prefix}llvm-libunwind-doc -%license libunwind/LICENSE.TXT -%doc %{_pkgdocdir}/html - -%changelog -* Fri Dec 6 2024 liyunfei - 18.1.8-1 -- init for Multi-Version LLVM-18.1.8 - -* Thu Nov 07 2024 Funda Wang - 17.0.6-4 -- adopt to new cmake macro -- force out-of-source build - -* Tue Aug 20 2024 liyunfei - 17.0.6-3 -- Add BiSheng Autotuner support. - -* Fri Jul 5 2024 liyunfei - 17.0.6-2 -- Add toolchain_clang build support - -* Tue Dec 5 2023 zhoujing - 17.0.6-1 -- update to 17.0.6 - -* Tue Feb 7 2023 Wang Zehong - 12.0.1-1 -- update to 12.0.1-1 diff --git a/libcxxabi-18.1.8.src.tar.xz b/libcxxabi-18.1.8.src.tar.xz deleted file mode 100644 index 10189dd558a31849c4d376dfbe0baffcef88022d..0000000000000000000000000000000000000000 Binary files a/libcxxabi-18.1.8.src.tar.xz and /dev/null differ diff --git a/libunwind-18.1.8.src.tar.xz b/libunwind-18.1.8.src.tar.xz deleted file mode 100644 index 171084563144fadf7239449957019806419de80d..0000000000000000000000000000000000000000 Binary files a/libunwind-18.1.8.src.tar.xz and /dev/null differ diff --git a/runtimes-18.1.8.src.tar.xz b/runtimes-18.1.8.src.tar.xz deleted file mode 100644 index 40168632023cd87be6d3e3c8430a5efbcb690aea..0000000000000000000000000000000000000000 Binary files a/runtimes-18.1.8.src.tar.xz and /dev/null differ