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

