Skip to content

[1124] L3 剩余 glue 迁到 standalone 编译单元#3840

Merged
da-liii merged 2 commits into
mainfrom
da/1124/3lua
Jun 26, 2026
Merged

[1124] L3 剩余 glue 迁到 standalone 编译单元#3840
da-liii merged 2 commits into
mainfrom
da/1124/3lua

Conversation

@da-liii

@da-liii da-liii commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

承接 PR #3838glue_drd/glue_file)的 L3 standalone 迁移,本批把
L3 剩余 glue 全部迁到独立编译单元模式:

  • glue_misc / glue_modification / glue_moebius / glue_patch /
    glue_url 五个 lua 声明文件加 standalone = true + includes 列表,
    各配一个 glue_<name>_extra.hpp 持有穿插函数 / using 引入 / 辅助类型
    _extra.hpp 的内容见 devel/1124.md 进度条)。
  • init_glue_l3.cpp 删掉对应的 #include "glue_*.cpp" 文本包含,
    改为 include _extra.hpp(穿插函数还在用的)。
  • init_glue_l3.hpp 调整前向声明。

落地后增量粒度到单文件,符合标准 codegen 模式(背景见 devel/1124.md)。

Test plan

  • xmake f -m release && xmake b stem 全量构建通过
  • nm build/*/libmogan.so | grep tmg_ | wc -l 符号数不低于改造前
  • xmake r stem 正常启动、scheme 函数可调用
  • xmake build --group=tests 整组通过

🤖 Generated with Claude Code

@da-liii da-liii merged commit 2d30275 into main Jun 26, 2026
4 checks passed
@da-liii da-liii deleted the da/1124/3lua branch June 26, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant