1 Star 0 Fork 66

llvm-la/llvm_src-openEuler

forked from src-openEuler/llvm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0020-Update-llvm-lit-config-to-support-build_for_openeule.patch 904 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 5721be433ddee5f60d4a9434df43a023f1ec4c0e Mon Sep 17 00:00:00 2001
From: wangqiang <[email protected]>
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/llvm-la/llvm_src-openEuler.git
[email protected]:llvm-la/llvm_src-openEuler.git
llvm-la
llvm_src-openEuler
llvm_src-openEuler
master

搜索帮助