已合并
fix cmake option ENABLE_LLVM_COMPILE bug that LLVM is still being compiled when ENABLE_LLVM_COMPILE is set to OFF #8701
fix cmake option ENABLE_LLVM_COMPILE bug that LLVM is still being compiled when ENABLE_LLVM_COMPILE is set to OFF #8701
已合并
MengMengDeXiaoJi创建于 2025年12月10日
MengMengDeXiaoJi
MengMengDeXiaoJi
2025年12月10日

【标题】(请简要描述下实现的内容)
修复当ENABLE_LLVM_COMPILE设置为OFF时,opengauss的llvm codegen仍然被编译的bug
【实现内容】:

【根因分析】:
没有设置ENABLE_LLVM_COMPILE的判断条件
【实现方案】:
添加了ENABLE_LLVM_COMPILE的判断条件
【关联需求或issue】:
https://gitcode.com/opengauss/openGauss-server/issues/7758
【开发自验报告】:

  1. 请附上自验结果(内容或者截图)
  2. 是否可以添加fastcheck测试用例,如是,请补充fastcheck用例
  3. 是否涉及资料修改,如是,在docs仓库补充资料
  4. 是否考虑升级场景(系统表修改、日志持久化以及修改执行态数据格式)
  5. 是否考虑在线扩容等扩展场景
  6. 是否考虑异常场景/并发场景/前向兼容/性能场景
  7. 是否对其他模块产生影响
  8. 是否需要回合补丁版本(5.0、6.0),涉及(结果错误|coredump|性能劣化|内存泄露|集群异常)相关修复请排查回合补丁分支

【其他说明】:

likedislike
Pull Request已成功合入, 合并人@opengauss_bot
(感谢 MengMengDeXiaoJi 的贡献)
MengMengDeXiaoJiMengMengDeXiaoJi
2025年12月10日 关联了issue:[Bug]: cmake方式编译指定ENABLE_LLVM_COMPILE=OFF时,仍然要求编译codegen相关代码
opengauss_botopengauss_bot成员
2025年12月10日 添加了label:sig/AIsig/StorageEnginesig/SQLEnginesig/SecurityTechnologysig/CMsig/CloudNative
opengauss_bot
opengauss_bot成员
2025年12月10日 评论:

Welcome To openGauss Community

Hey @MengMengDeXiaoJi , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: AI, CM, CloudNative, SQLEngine, SecurityTechnology, StorageEngine ,
and any of the maintainers: @gaussyuexz, @hwworkholic, @lishifu_hw_db, @shaga, @totaj, @wangwei5, @yanghaos, @zhu_jinwei, @ziki77, @zjxqxf ,
and any of the committers: @CarrotGo, @bihua111, @cailei19, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @h_ray, @jemappellehc, @levy53071, @libiao2024, @lihaixiao, @mrzack, @quemingjian, @superlchf, @wangfeihuo, @wuyuechuan, @xiong_xjun, @zhangfengzhi123, @zjh_hw .

likedislike
opengauss_botopengauss_bot成员
2025年12月10日 添加了label:ci-pipeline-running
opengauss_botopengauss_bot成员
2025年12月10日 添加了label:codecheck-running
opengauss_botopengauss_bot成员
2025年12月10日 添加了label:opengauss-cla/yes
opengauss_bot
opengauss_bot成员
2025年12月10日 评论:

CLA Signature Pass

@MengMengDeXiaoJi, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
opengauss_botopengauss_bot成员
2025年12月10日 添加了label:need-doc-pr
opengauss_bot
opengauss_bot成员
2025年12月10日 评论:

Linking PR Notice

@MengMengDeXiaoJi , the pull request should be linked to at least one https://gitcode.com/opengauss/docs repository's PR.
If it is confirmed that no PR association is needed, you can remove the label by commenting /remove-need-doc .

likedislike
opengauss_botopengauss_bot成员
2025年12月10日 添加了label:lite-ci-running
opengauss_bot
opengauss_bot成员
2025年12月10日 评论:

开源片段扫描

Check Name Build Details Check Result Check Detail
sca #28570 ✅ 通过 >>>
likedislike
opengauss_botopengauss_bot成员
2025年12月10日 添加了label:sca-success
opengauss_bot
opengauss_bot成员
2025年12月10日 评论:

静态检查

Check Name Build Details Check Result Check Detail
CodeCheck #64390 ✅ 通过 >>>
likedislike
opengauss_botopengauss_bot成员
2025年12月10日 添加了label:codecheck-success
opengauss_botopengauss_bot成员
2025年12月10日 删除了label:codecheck-running
opengauss_botopengauss_bot成员
2025年12月10日 删除了label:lite-ci-running
opengauss_botopengauss_bot成员
2025年12月10日 添加了label:lite-ci-success
opengauss_bot
opengauss_bot成员
2025年12月10日 评论:
Check Name Build Result Build Details
openGauss_Lite_Pr ✅ SUCCESS #15466
likedislike
opengauss_botopengauss_bot成员
2025年12月10日 删除了label:ci-pipeline-running
opengauss_botopengauss_bot成员
2025年12月10日 添加了label:ci-pipeline-success
opengauss_bot
opengauss_bot成员
2025年12月10日 评论:
Check Name Build Result Build Details
openGauss_server_pr ✅ Success #25665
likedislike
shenzheng4
shenzheng4成员
2025年12月17日 评论:

/lgtm

likedislike
opengauss_botopengauss_bot成员
2025年12月17日 添加了label:lgtm-shenzheng4
opengauss_bot
opengauss_bot成员
2025年12月17日 评论:

Review Code Feedback

  • The label lgtm-shenzheng4 was added to this pull request. It means that shenzheng4 reviewed the code changes. 👋
Tips
  • If this pull request is not merged while all conditions are met, comment /check-pr to try again. 😄
likedislike
zhangxubo
zhangxubo成员
2025年12月17日 评论:

/lgtm
/approve

likedislike
opengauss_botopengauss_bot成员
2025年12月17日 添加了label:lgtm-zhangxubo
opengauss_bot
opengauss_bot成员
2025年12月17日 评论:

Review Code Feedback

  • The label lgtm-zhangxubo was added to this pull request. It means that zhangxubo reviewed the code changes. 👋
Tips
  • If this pull request is not merged while all conditions are met, comment /check-pr to try again. 😄
likedislike
opengauss_botopengauss_bot成员
2025年12月17日 添加了label:approved
opengauss_bot
opengauss_bot成员
2025年12月17日 评论:

Review Code Feedback

  • The label approved was added to this pull request. It means that zhangxubo reviewed the code changes. 👋
Tips
  • If this pull request is not merged while all conditions are met, comment /check-pr to try again. 😄
likedislike
zhangxubo
zhangxubo成员
2025年12月17日 评论:

/check-pr

likedislike
opengauss_bot
opengauss_bot成员
2025年12月17日 评论:

Merge Verification Failed

@zhangxubo, this pr is not mergeable and the reasons are below:

Label BackList
  • the need-doc-pr label(s) caused the pull request to be unable to merge.
Label Usage Tips
  • need-doc-pr: the pull request should be linked to at least one https://gitcode.com/opengauss/docs repository's PR. If it is confirmed that no PR association is needed, you can remove the label by commenting /remove-need-doc .
likedislike
zhangxubo
zhangxubo成员
2025年12月17日 评论:

/remove-need-doc

likedislike
opengauss_botopengauss_bot成员
2025年12月17日 删除了label:need-doc-pr
opengauss_botopengauss_bot成员
2025年12月17日 关闭了关联的issue
opengauss_botopengauss_bot成员
2025年12月17日 合入了pull request,合并节点 SHA:7aeaaa5a2eabe8b13c397ea9059196e7c1986b5a
opengauss_botopengauss_bot成员
2025年12月17日 删除了label:codecheck-success
opengauss_botopengauss_bot成员
2025年12月17日 添加了label:codecheck-running
opengauss_bot
opengauss_bot成员
2025年12月17日 评论:

开源片段扫描

Check Name Build Details Check Result Check Detail
sca #29256 ✅ 通过 >>>
likedislike
opengauss_bot
opengauss_bot成员
2025年12月17日 评论:

静态检查

Check Name Build Details Check Result Check Detail
CodeCheck #65235 ✅ 通过 >>>
likedislike
opengauss_botopengauss_bot成员
2025年12月17日 添加了label:codecheck-success
opengauss_botopengauss_bot成员
2025年12月17日 删除了label:codecheck-running