summaryrefslogtreecommitdiff
path: root/0020-Update-llvm-lit-config-to-support-build_for_openeule.patch
diff options
context:
space:
mode:
Diffstat (limited to '0020-Update-llvm-lit-config-to-support-build_for_openeule.patch')
-rw-r--r--0020-Update-llvm-lit-config-to-support-build_for_openeule.patch30
1 files changed, 30 insertions, 0 deletions
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 0000000..48a4ff5
--- /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 <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
+