Skip to content

[0303] 优化 xmake.lua 避免不必要的重新编译#3383

Merged
da-liii merged 4 commits into
mainfrom
da/0133/xmake_lua
May 19, 2026
Merged

[0303] 优化 xmake.lua 避免不必要的重新编译#3383
da-liii merged 4 commits into
mainfrom
da/0133/xmake_lua

Conversation

@da-liii
Copy link
Copy Markdown
Contributor

@da-liii da-liii commented May 17, 2026

Summary

  • 移除全局作用域重复 add_configfiles 生成 config.h
  • 将 QWKCore/QWKWidgets before_build 中动态添加 includedirs 移至 on_load
  • 将 libmogan/stem before_build 中动态添加 forceincludes 移至 on_load
  • os.vcp 替换为内容对比安全拷贝,避免无条件更新时间戳导致依赖文件重新编译

Test plan

  • xmake b stem 首次构建成功
  • xmake b stem 第二次构建无重新编译(耗时从 3.5s 降至 0.6s)
  • xmake b stem 第三次构建无重新编译
  • xmake clean 后完整构建成功

🤖 Generated with Claude Code

da-liii and others added 3 commits May 18, 2026 00:02
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1. 移除全局作用域重复 add_configfiles 生成 config.h
2. 将 QWKCore/QWKWidgets before_build 中动态添加 includedirs 移至 on_load
3. 将 libmogan/stem before_build 中动态添加 forceincludes 移至 on_load
4. 将 os.vcp 替换为内容对比安全拷贝,避免无条件更新时间戳导致依赖文件重新编译

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@MoonL79 MoonL79 changed the title [0133] 优化 xmake.lua 避免不必要的重新编译 [0303] 优化 xmake.lua 避免不必要的重新编译 May 18, 2026
@da-liii da-liii merged commit c7e732e into main May 19, 2026
3 of 4 checks passed
@da-liii da-liii deleted the da/0133/xmake_lua branch May 19, 2026 03:25
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.

2 participants