diff --git a/0020-Update-llvm-lit-config-to-support-build_for_openeule.patch b/0020-Update-llvm-lit-config-to-support-build_for_openeule.patch new file mode 100644 index 0000000000000000000000000000000000000000..48a4ff5bca39424a8165a54b02ba8382a5bdf36f --- /dev/null +++ b/0020-Update-llvm-lit-config-to-support-build_for_openeule.patch @@ -0,0 +1,30 @@ +From 5721be433ddee5f60d4a9434df43a023f1ec4c0e Mon Sep 17 00:00:00 2001 +From: wangqiang +Date: Sun, 28 Apr 2024 14:30:34 +0800 +Subject: [PATCH] Update llvm-lit config to support build_for_openeuler + +--- + llvm/cmake/modules/HandleLLVMOptions.cmake | 7 +++++++ + 1 files changed, 7 insertions(+) + +diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake +index 76723be69..c6f5569af 100644 +--- a/llvm/cmake/modules/HandleLLVMOptions.cmake ++++ b/llvm/cmake/modules/HandleLLVMOptions.cmake +@@ -97,6 +97,13 @@ if( LLVM_ENABLE_ASSERTIONS ) + set(LLVM_ENABLE_CLASSIC_FLANG 0) + endif() + ++option(BUILD_FOR_OPENEULER "Build support for openeuler" OFF) ++if(BUILD_FOR_OPENEULER) ++ set(BUILD_FOR_OPENEULER 1) ++else() ++ set(BUILD_FOR_OPENEULER 0) ++endif() ++ + if(LLVM_ENABLE_EXPENSIVE_CHECKS) + add_compile_definitions(EXPENSIVE_CHECKS) + +-- +2.33.0 + diff --git a/llvm.spec b/llvm.spec index 454bf0aa00e04db52ad639fe598cafaa1a3da317..73dfde2c5fbed50e3121db8807f151f54887da05 100644 --- a/llvm.spec +++ b/llvm.spec @@ -38,7 +38,7 @@ Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 9 +Release: 10 Summary: The Low Level Virtual Machine License: NCSA @@ -65,9 +65,10 @@ Patch13: 0013-Backport-Bitcode-Add-some-missing-GetTypeByID-failure-checks.patc Patch14: 0014-Backport-X86-Inline-Skip-inline-asm-in-inlining-targ.patch Patch15: 0015-Backport-ARM-Check-all-terms-in-emitPopInst-when-clearing-Res.patch Patch16: 0016-Backport-ARM-Update-IsRestored-for-LR-based-on-all-returns-82.patch -Patch17: 0017-Add-the-support-for-classic-flang.patch -Patch18: 0018-Fix-declaration-definition-mismatch-for-classic-flang.patch +Patch17: 0017-Add-the-support-for-classic-flang.patch +Patch18: 0018-Fix-declaration-definition-mismatch-for-classic-flang.patch Patch19: 0019-Backport-LoongArch-Improve-the-support-for-atomic-and-clear_cache.patch +Patch20: 0020-Update-llvm-lit-config-to-support-build_for_openeule.patch BuildRequires: binutils-devel BuildRequires: cmake @@ -352,6 +353,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build %{install_includedir}/llvm-gmock %changelog +* Mon Apr 29 2024 wangqiang - 17.0.6-10 +- Update llvm-lit config to support macro `build_for_openeuler` + * Sun Apr 21 2024 zhanglimin - 17.0.6-9 - Improve the support for atomic and __clear_cache @@ -379,7 +383,7 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build * Thu Nov 30 2023 zhoujing - 17.0.6-1 - Update to 17.0.6 -* Tue Jul 13 2023 cf-zhao -12.0.1-7 +* Thu Jul 13 2023 cf-zhao -12.0.1-7 - Disable check. * Sat Jul 08 2023 cf-zhao -12.0.1-6