Update llvm-lit config to support macro build_for_openeuler
(cherry picked from commit 2b03ba072ed723b232d1b29a1be921b2536de495)
This commit is contained in:
parent
4fb96c47ef
commit
2bdf3e68e6
@ -0,0 +1,30 @@
|
|||||||
|
From 5721be433ddee5f60d4a9434df43a023f1ec4c0e Mon Sep 17 00:00:00 2001
|
||||||
|
From: wangqiang <wangqiang1@kylinos.cn>
|
||||||
|
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
|
||||||
|
|
||||||
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
Name: %{pkg_name}
|
Name: %{pkg_name}
|
||||||
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
|
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: The Low Level Virtual Machine
|
Summary: The Low Level Virtual Machine
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
@ -68,6 +68,7 @@ Patch16: 0016-Backport-ARM-Update-IsRestored-for-LR-based-on-all-returns-82.pat
|
|||||||
Patch17: 0017-Add-the-support-for-classic-flang.patch
|
Patch17: 0017-Add-the-support-for-classic-flang.patch
|
||||||
Patch18: 0018-Fix-declaration-definition-mismatch-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
|
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: binutils-devel
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -352,6 +353,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build
|
|||||||
%{install_includedir}/llvm-gmock
|
%{install_includedir}/llvm-gmock
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 29 2024 wangqiang <wangqiang1@kylinos.cn> - 17.0.6-10
|
||||||
|
- Update llvm-lit config to support macro `build_for_openeuler`
|
||||||
|
|
||||||
* Sun Apr 21 2024 zhanglimin <zhanglimin@loongson.cn> - 17.0.6-9
|
* Sun Apr 21 2024 zhanglimin <zhanglimin@loongson.cn> - 17.0.6-9
|
||||||
- Improve the support for atomic and __clear_cache
|
- 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 <zhoujing106@huawei.com> - 17.0.6-1
|
* Thu Nov 30 2023 zhoujing <zhoujing106@huawei.com> - 17.0.6-1
|
||||||
- Update to 17.0.6
|
- Update to 17.0.6
|
||||||
|
|
||||||
* Tue Jul 13 2023 cf-zhao <zhaochuanfeng@huawei.com> -12.0.1-7
|
* Thu Jul 13 2023 cf-zhao <zhaochuanfeng@huawei.com> -12.0.1-7
|
||||||
- Disable check.
|
- Disable check.
|
||||||
|
|
||||||
* Sat Jul 08 2023 cf-zhao <zhaochuanfeng@huawei.com> -12.0.1-6
|
* Sat Jul 08 2023 cf-zhao <zhaochuanfeng@huawei.com> -12.0.1-6
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user